* AW: GCC and Modules
@ 2001-07-25 9:12 Andre.Messerschmidt
2001-07-25 11:24 ` Ralf Baechle
2001-07-25 14:02 ` AW: " Ian Soanes
0 siblings, 2 replies; 5+ messages in thread
From: Andre.Messerschmidt @ 2001-07-25 9:12 UTC (permalink / raw)
To: ralf; +Cc: linux-mips
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?
regards
--
Andre Messerschmidt
Application Engineer
Infineon Technologies AG
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GCC and Modules
2001-07-25 9:12 AW: GCC and Modules Andre.Messerschmidt
@ 2001-07-25 11:24 ` Ralf Baechle
2001-07-25 14:02 ` AW: " Ian Soanes
1 sibling, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2001-07-25 11:24 UTC (permalink / raw)
To: Andre.Messerschmidt; +Cc: linux-mips
On Wed, Jul 25, 2001 at 11:12:47AM +0200, Andre.Messerschmidt@infineon.com wrote:
> 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)
-fno-pic you mean. Half PIC is meaningless under Linux.
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AW: GCC and Modules
2001-07-25 9:12 AW: GCC and Modules Andre.Messerschmidt
2001-07-25 11:24 ` Ralf Baechle
@ 2001-07-25 14:02 ` Ian Soanes
2001-07-25 17:00 ` Ralf Baechle
1 sibling, 1 reply; 5+ messages in thread
From: Ian Soanes @ 2001-07-25 14:02 UTC (permalink / raw)
To: Andre.Messerschmidt; +Cc: ralf, linux-mips
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AW: GCC and Modules
2001-07-25 14:02 ` AW: " Ian Soanes
@ 2001-07-25 17:00 ` Ralf Baechle
0 siblings, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2001-07-25 17:00 UTC (permalink / raw)
To: Ian Soanes; +Cc: Andre.Messerschmidt, linux-mips
On Wed, Jul 25, 2001 at 03:02:39PM +0100, Ian Soanes wrote:
> 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.
The local_symtab_size symtab is caused by the fine differences between
IRIX ELF and ABI ELF. More recent binutils versions switched to ABI ELF
as the default.
Not using -mlong-calls results in ``Relocation overflow'' messages. That's
not the case here, so this option probably was used.
Error messages about _gp_disp proof that the module contains PIC code that
is has not been built using -mno-abicalls -fno-pic.
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* AW: GCC and Modules
@ 2001-07-25 11:43 Andre.Messerschmidt
0 siblings, 0 replies; 5+ messages in thread
From: Andre.Messerschmidt @ 2001-07-25 11:43 UTC (permalink / raw)
To: ralf; +Cc: linux-mips
> -fno-pic you mean. Half PIC is meaningless under Linux.
>
I must confess that I don't know what these options actually do.
Nevertheless even with this option the result is the same. :-(
Any other ideas?
best regards
Andre
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-07-25 17:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-25 9:12 AW: GCC and Modules Andre.Messerschmidt
2001-07-25 11:24 ` Ralf Baechle
2001-07-25 14:02 ` AW: " Ian Soanes
2001-07-25 17:00 ` Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2001-07-25 11:43 Andre.Messerschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox