linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@wirex.com>
To: linux-kernel@vger.kernel.org, stackguard@immunix.org
Subject: StackGuard compiler patch for 2.4.0-prerelease
Date: Tue, 2 Jan 2001 10:57:18 -0800	[thread overview]
Message-ID: <20010102105718.E4190@wirex.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

Due to some prodding from a /. post, here's the updated patch to enable
the StackGuard version of gcc be able to compile a 2.4.0-prerelease
kernel properly.

This patch is also available at:
	http://immunix.org/ImmunixOS/7.0-beta/i386/extras/

thanks,

greg k-h

-- 
greg@(kroah|wirex).com
http://immunix.org/~greg

[-- Attachment #2: canary-2.4.0-prerelease.diff --]
[-- Type: text/plain, Size: 1721 bytes --]

diff -Naur -X /home/greg/linux/dontdiff linux-2.4.0-prerelease/Makefile linux-2.4.0-prerelease-greg/Makefile
--- linux-2.4.0-prerelease/Makefile	Tue Jan  2 10:26:10 2001
+++ linux-2.4.0-prerelease-greg/Makefile	Tue Jan  2 10:31:04 2001
@@ -227,6 +227,10 @@
 
 include arch/$(ARCH)/Makefile
 
+# if we have a StackGuard compiler, then we need to turn off the canary death handler stuff
+CFLAGS	+= $(shell if $(CC) -fno-canary-all-functions -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-fno-canary-all-functions"; fi)
+CFLAGS	+= $(shell if $(CC) -mno-terminator-canary -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mno-terminator-canary"; fi)
+
 export	CPPFLAGS CFLAGS AFLAGS
 
 export	NETWORKS DRIVERS LIBS HEAD LDFLAGS LINKFLAGS MAKEBOOT ASFLAGS
diff -Naur -X /home/greg/linux/dontdiff linux-2.4.0-prerelease/arch/i386/boot/compressed/Makefile linux-2.4.0-prerelease-greg/arch/i386/boot/compressed/Makefile
--- linux-2.4.0-prerelease/arch/i386/boot/compressed/Makefile	Tue Mar  7 11:04:12 2000
+++ linux-2.4.0-prerelease-greg/arch/i386/boot/compressed/Makefile	Tue Jan  2 10:31:04 2001
@@ -12,6 +12,12 @@
 CFLAGS = $(CPPFLAGS) -O2 -DSTDC_HEADERS
 ZLDFLAGS = -e startup_32
 
+# if we have a StackGuard compiler, then we need to turn off the canary death handler stuff
+CFLAGS += $(shell if $(CC) -fno-canary-all-functions -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-fno-canary-all-functions"; fi)
+CFLAGS += $(shell if $(CC) -mno-terminator-canary -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mno-terminator-canary"; fi)
+
+
+
 #
 # ZIMAGE_OFFSET is the load offset of the compression loader
 # BZIMAGE_OFFSET is the load offset of the high loaded compression loader

                 reply	other threads:[~2001-01-02 19:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010102105718.E4190@wirex.com \
    --to=greg@wirex.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stackguard@immunix.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).