From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Owens Date: Fri, 17 Oct 2003 01:32:35 +0000 Subject: Re: type 95 for .text? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org 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.