From: Ian Soanes <ians@lineo.com>
To: Andre.Messerschmidt@infineon.com
Cc: ralf@oss.sgi.com, linux-mips@oss.sgi.com
Subject: Re: AW: GCC and Modules
Date: Wed, 25 Jul 2001 15:02:39 +0100 [thread overview]
Message-ID: <3B5ED17F.6D50331F@lineo.com> (raw)
In-Reply-To: 86048F07C015D311864100902760F1DDFF0016@dlfw003a.dus.infineon.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
next prev parent reply other threads:[~2001-07-25 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2001-07-25 17:00 ` AW: " Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2001-07-25 11:43 Andre.Messerschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B5ED17F.6D50331F@lineo.com \
--to=ians@lineo.com \
--cc=Andre.Messerschmidt@infineon.com \
--cc=linux-mips@oss.sgi.com \
--cc=ralf@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox