init.h

Pauline Middelink (middelin@polyware.nl)
Wed, 29 Dec 1999 16:40:15 +0100


LS,

To whom it may concern, in linux/init.h there is some weak-alias stuff
going on, but only for gcc 2.95 compilers and better. However, my
'standard' 6.1 redhat egcs 1.1.2 compiler seems to compile this
stuff very well also.

So, i propose the following litte patch, which nibbles a few(32)
bytes of every module... which might proof interesting for the
coming 2.4 release...

Met vriendelijke groet,
Pauline Middelink

-- 
PGP Key fingerprint = DE 6B D0 D9 19 AD A7 A0  58 A3 06 9D B6 34 39 E2
For more details look at my website http://www.polyware.nl/~middelin

diff -ur linux-2.3.34/include/linux/init.h linux-2.3.34-2/include/linux/init.h --- linux-2.3.34/include/linux/init.h Tue Dec 21 14:53:05 1999 +++ linux-2.3.34-2/include/linux/init.h Thu Dec 23 13:51:10 1999 @@ -94,8 +94,8 @@ #define __FINIT #define __INITDATA

-/* Not sure what version aliases were introduced in, but certainly in 2.95. */ -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) +/* Not sure what version aliases were introduced in, but certainly in 2.91.66 * / +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 91) #define module_init(x) int init_module(void) __attribute__((alias(#x))); #define module_exit(x) void cleanup_module(void) __attribute__((alias(#x))); #else

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/