Re: "unhandled relocation type 18" ???

4 messages, 4 authors, 2001-03-08 · open the first message on its own page

Re: "unhandled relocation type 18" ???

From: Wolfgang Denk <hidden>
Date: 2001-03-06 08:02:21

In message [off-list ref] you wrote:
On Mon, 5 Mar 2001, Wolfgang Denk wrote:
quoted
when trying to "insmod" a  kernel  module  that  uses  floating-point
functions  like  "sin", we get error messages:

	unhandled relocation type 18
Does it also complain about a missing symbol for `sin'?
No, it does not.

We made sure to link the module with  the  math  library  to  resolve
those references.

But we still get those  error  messages;  the  first  is  always  for
lshrdi3  -  which is linked with our module (but also provided by the
kernel - could there be any problems?), and then we get a  long  list
of errors for pack and unpack functions - whatever they are.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
An Elephant is a mouse with an Operating System.              - Knuth

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: "unhandled relocation type 18" ???

From: Franz Sirl <hidden>
Date: 2001-03-06 10:22:43

At 09:02 06.03.2001, Wolfgang Denk wrote:
In message [off-list ref]
you wrote:
quoted
On Mon, 5 Mar 2001, Wolfgang Denk wrote:
quoted
when trying to "insmod" a  kernel  module  that  uses  floating-point
functions  like  "sin", we get error messages:

    unhandled relocation type 18
Does it also complain about a missing symbol for `sin'?
No, it does not.

We made sure to link the module with  the  math  library  to  resolve
those references.

But we still get those  error  messages;  the  first  is  always  for
lshrdi3  -  which is linked with our module (but also provided by the
kernel - could there be any problems?), and then we get a  long  list
of errors for pack and unpack functions - whatever they are.
18 is a PLTREL24 relocation, so a b/bl has to be involved, but it should be
a REL24 relocation, the PLT usage points to compilation of a module with
-fpic/-fPIC?

Franz.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: "unhandled relocation type 18" ???

From: Jerry Van Baren <hidden>
Date: 2001-03-06 11:49:31

At 11:22 AM 3/6/01 +0100, Franz Sirl wrote:

At 09:02 06.03.2001, Wolfgang Denk wrote:
quoted
In message [off-list ref]
you wrote:
quoted
On Mon, 5 Mar 2001, Wolfgang Denk wrote:
quoted
when trying to "insmod"
a  kernel  module  that  uses  floating-point
quoted
quoted
functions  like  "sin", we get error messages:

    unhandled relocation type 18
Does it also complain about a missing symbol for `sin'?
No, it does not.

We made sure to link the module with  the  math  library  to  resolve
those references.

But we still get those  error  messages;  the  first  is  always  for
lshrdi3  -  which is linked with our module (but also provided by the
kernel - could there be any problems?), and then we get a  long  list
of errors for pack and unpack functions - whatever they are.
18 is a PLTREL24 relocation, so a b/bl has to be involved, but it
should be
a REL24 relocation, the PLT usage points to compilation of a module with
-fpic/-fPIC?

Franz.
Ah-ha, these are good clues.  This sounds to me like an unresolved
reference (most likely) or a branch too far.  An unresolved reference
can cause the linker to try to make the branch go beyond the legal
limits (+/-32MBytes) or you may simply have too large a program for the
relative branches.  I would suggest figuring out the lshrdi3, pack and
unpack errors first.

gvb

Disclaimer: This is speculation based on cruel past experience.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: "unhandled relocation type 18" ???

From: Dan Malek <hidden>
Date: 2001-03-08 02:53:12

Franz Sirl wrote:
18 is a PLTREL24 relocation, so a b/bl has to be involved, but it should be
a REL24 relocation, the PLT usage points to compilation of a module with
-fpic/-fPIC?
Heh, heh....it's probably looking for C library or compiler run-time
support (and virtual addresses to match :-).


	-- Dan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help