[OpenAFS-devel] libafs patch for Immunix OS

Atro Tossavainen Atro.Tossavainen@helsinki.fi
Fri, 7 Sep 2001 12:05:08 +0300 (EET DST)


Hello,

Nathan Neulinger and I discussed this on the list in April, but the
changes didn't make it into the distribution as far as I can see from
1.1.1a.

In src/libafs/MakefileProto.LINUX, add these two lines after CCFLAGS
is set in the <i386_linux22 i386_linux24> section

CCFLAGS += $(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)
CCFLAGS += $(shell if $(CC) -mno-terminator-canary -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mno-terminator-canary"; fi)

These do nothing on standard gcc/egcs, but on the StackGuard egcs, they
ensure that the libafs kernel module is compiled without the StackGuard
protection (which would otherwise prevent kernel modules from working
at all).

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . iki . fi / atro . tossavainen / >