Re: type 95 for .text?

From: Keith Owens <>
Date: 2003-10-17 11:32:35
On Thu, 16 Oct 2003 18:12:12 -0700, 
Grant Grundler <> wrote:
>On Fri, Oct 17, 2003 at 11:04:52AM +1000, Keith Owens wrote:
>> for i in $(find /lib/modules/2.4.23-pre6 -type f); do readelf -h $i 2>/dev/null | (grep 'constant gp' > /dev/null && echo $i has constant gp); done
>hey! don't make it too easy for me! :^)
>/lib/modules/2.4.23-pre6/kernel/arch/ia64/lib/xor.o has constant gp
>I just added that...sounds like bjorn should ignore my patch
>since the module isn't getting built correctly. *sigh*.

Aha!  Kernel build 2.4 expects all modules to be .c files, not .S.  All
the .S -> .o rules are hard coded to add $(AFLAGS_KERNEL) which
includes -mconstant-gp.  Fixing that will affect all architectures and
requires more kbuild surgery than I feel like doing right now.

Live with the restriction that 2.4 modules have to be .c files and
retain the inline asm format.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Thu Oct 16 21:33:17 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:19 EST