linux-mips
[Top] [All Lists]

Re: AW: GCC and Modules

To: Andre.Messerschmidt@infineon.com
Subject: Re: AW: GCC and Modules
From: Ian Soanes <ians@lineo.com>
Date: Wed, 25 Jul 2001 15:02:39 +0100
Cc: ralf@oss.sgi.com, linux-mips@oss.sgi.com
Organization: Lineo UK
References: <86048F07C015D311864100902760F1DDFF0016@dlfw003a.dus.infineon.com>
Sender: owner-linux-mips@oss.sgi.com
Andre.Messerschmidt@infineon.com wrote:
> 
> Hi.
> 
> > He's refering to the last official release of binutils which indeed wasn't
> > usable for modutils.
> >
> I compiled the tools by myself but the problems remain.
> My module should only print a message using printk, but I can't get it to
> run.
> 
> Here are my results:
> > insmod module.o
> insmod: unresolved symbol _gp_disp
> 
> Module compiled with -mno-abicalls and -no-half-pic (as someone in the
> archives mentioned)
> > insmod module.o
> Warning: unhandled reloc 9
> insmod: Unhandled relocation of type 9 for
> Warning: unhandled reloc 11
> insmod: Unhandled relocation of type 11 for printk
> Warning: unhandled reloc 9
> insmod: Unhandled relocation of type 9 for
> Warning: unhandled reloc 11
> insmod: Unhandled relocation of type 11 for printk
> 
> Does anybody know what the problem is?
> 

Hi Andre,

This may be a little out of date, but compiling with the module with
-mlong-calls worked for me when I had similar problems loading modules a
while back. Relinking the module with 'ld -r -o new_mod.o orig_mod.o'
was useful too ...it worked around some 'exceeds local_symtab_size'
messages.

At the time I was using modutils 2.4.5 and an older version of binutils
(sorry I'm not near the relevant box to check exactly which version), so
maybe some of this is not relevant any more.

Hope this helps in some way,
Ian

<Prev in Thread] Current Thread [Next in Thread>