From: Wolfgang Grandegger <wolfgang.grandegger@bluewin.ch>
To: Joshua Lamorie <jpl@xiphos.ca>
Cc: rtai@rtai.org, linuxppc-embedded@ozlabs.org
Subject: Re: Unhandled relocation of type 11
Date: Thu, 07 Apr 2005 11:19:52 +0200 [thread overview]
Message-ID: <4254FB38.9040202@bluewin.ch> (raw)
In-Reply-To: <42545228.9060003@xiphos.ca>
Hello,
I'm not a linker expert but some time ago I got the gcc soft floating
library working for 8xx and 4xx in kernel space. The problem was with
PIC. Maybe your library is built with PIC and it's required without. You
may want to have a look to:
ftp://ftp.denx.de/pub/RTAI/contrib/fp_ppc_8xx.tar.bz2
Wolfgang.
On 04/06/2005 11:18 PM Joshua Lamorie wrote:
> Please excuse this cross-post, but I think it is of interest to both
> RTAI and Linux PPC folks.
>
> I am making a kernel module (an RTAI task) that needs floating point
> support so I'm using IBMs perflib floating-point libraries (on a
> Virtex-II Pro, aka ppc405).
>
> This is actually built from Matlab/simulink real-time workshop output (I
> can't use rtai-lab because I don't think lxrt is available for ppc)...
> so there end up being many object files to link.
>
> So, in the end I have a linker command as follows.
>
> powerpc-405-linux-gnu-ld -r -m elf32ppclinux -L/some/directories
> matlab_root/rtw/c/libsrc/rt_zcfcn.o other.o inputs.o -o module_output.o
> perflibs/fpopt/libppcfp.a
>
> Then I go to insert the module and....
> /var/shm # insmod test001_build_rtmodule.o
> Warning: loading test001_build_rtmodule.o will taint the kernel: non-GPL
> license - Proprietary
> See http://www.tux.org/lkml/#export-tainted for information about
> tainted modules
> test001_build_rtmodule.o: Unhandled relocation of type 11 for __fixdfsi
> test001_build_rtmodule.o: Unhandled relocation of type 11 for __fixdfsi
>
> Hrmm... so any ideas on what type 11 is? I can see from the code in
> modutils that this value is inside rel->r_info, such as R_PPC_ADDR32 or
> R_PPC_ADDR16_HA.
>
> But where do I get more info about where r_info gets assigned? Do I
> need to link libppcfp.a in a particular way?
>
> Any hints would be appreciated.
>
> Thanks in advance.
>
> Joshua
>
next prev parent reply other threads:[~2005-04-07 8:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-06 21:18 Unhandled relocation of type 11 Joshua Lamorie
2005-04-07 9:19 ` Wolfgang Grandegger [this message]
2005-04-07 14:20 ` Joshua Lamorie
2005-04-08 14:08 ` Joshua Lamorie
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=4254FB38.9040202@bluewin.ch \
--to=wolfgang.grandegger@bluewin.ch \
--cc=jpl@xiphos.ca \
--cc=linuxppc-embedded@ozlabs.org \
--cc=rtai@rtai.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).