linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Arun Kumar" <arunkat@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: unhadled reloc 18
Date: Thu, 16 Nov 2006 22:46:53 +0530	[thread overview]
Message-ID: <edd12c050611160916y1581e270l5ddd8016a0720eca@mail.gmail.com> (raw)

[-- 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 --]

                 reply	other threads:[~2006-11-16 17:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=edd12c050611160916y1581e270l5ddd8016a0720eca@mail.gmail.com \
    --to=arunkat@gmail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /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;
as well as URLs for NNTP newsgroup(s).