|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Chris Wright (chris
wirex.com)Date: Thu Jun 20 2002 - 14:28:04 CDT
* Tony Gale (gale
syntax.dstl.gov.uk) wrote:
> Hi all,
>
> Just doing a test build of 7+beta, does anyone have an up-to-date patch
> for setting the gcc flags for building the kernel?
If you are building the kernel src.rpm, the Makefile patch is already in
there. If you are builing your own kernel, the canary patches at:
ftp://ftp.ibiblio.org/pub/linux/distributions/immunix/7.0/i386/extras/
should still be fine.
I rediffed against 2.4.19-pre10 if that's useful.
--- linux-2.4.19-pre10/Makefile Mon Jun 3 11:50:52 2002
+++ linux-2.4.19-pre10-canary/Makefile Mon Jun 10 15:31:06 2002

-250,6 +250,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)
# Extra cflags for kbuild 2.4. The default is to forbid includes by kernel code
# from user space headers. Some UML code requires user space headers, in the
--- linux-2.4.19-pre10/arch/i386/boot/compressed/Makefile Thu Jan 10 06:04:59 2002
+++ linux-2.4.19-pre10-canary/arch/i386/boot/compressed/Makefile Fri Feb 22 18:28:30 2002

-11,6 +11,10 
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
thanks,
-chris
-- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net _______________________________________________ Immunix-users mailing list Immunix-usersmail.wirex.com http://mail.wirex.com/mailman/listinfo/immunix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]