linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* unhadled reloc 18
@ 2006-11-16 17:16 Arun Kumar
  0 siblings, 0 replies; only message in thread
From: Arun Kumar @ 2006-11-16 17:16 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

Hi ,
I am using k2.4.2 with cross compiler for PowerPC 8245 platform .
When I try to do an insmod of my driver it complains

unhandled reloc 18
insmod: Unhandled relocation of type 18 .......

for all the symbols in the driver .

I am compiling my driver as a module using -fPIC and then doing ld -r
mydriver -o mydrivernew `gcc -print-libgcc-file-name`

When I do an insmod mydrivernew it gives these relocation errors .

The reason why i using ld is that my code uses 64 bit division on 32 biut
platform so when i try to do insmod mydriver
it says undefined symbol __udivdi3

I am able to locate this symbol in libgcc and hence I am trying to include
it with my driver mydriver since I am not able to compile my kernel with gcc
as this library symbol __udivdi3 is not exported in my kernel image when
linked with libgcc with vmlinux .

Please suggest me how to get rid of these relocation warnings ???

Thanks
Arun

[-- Attachment #2: Type: text/html, Size: 1013 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-16 17:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-16 17:16 unhadled reloc 18 Arun Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).