Re: AW: GCC and Modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux