From: "中原 張" <tnndclub@yahoo.com.tw>
To: buildroot@busybox.net
Subject: [Buildroot] relocation R_MIPS_HI16 against `_gp' can not be used when making a shared object; recompile with -fPIC
Date: Wed, 7 Oct 2009 17:21:45 +0800 (CST) [thread overview]
Message-ID: <689310.86704.qm@web73402.mail.tp2.yahoo.com> (raw)
Hello,
I am using the MIPS cross toolchain built from buildroot-200908 release.
I choose gcc-4.3.4, binutils-2.19.1, uClibc-0.9.30.1 and linux-2.6.29 in the menuconfig.
The toolchain is generated very well.
After trying to use the toolchain to compile a package, I encounter the following error at link time.
mips-linux-ld:
init_mips.o: relocation R_MIPS_HI16 against `_gp' can not be used when
making a shared object; recompile with -fPIC
init_mips.o: could not read symbols: Bad value
Does any one know how to solve this problem?
This
package could be compiled and linked well by using the toolchain
generated from buildroot-200807 release with gcc-4.2.4, binutils-2.18,
uClibc-0.9.29 and linux-2.6.24.
___________________________________________________
??????? ? ????????????????
http://messenger.yahoo.com.tw/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091007/ed5e756c/attachment.htm>
next reply other threads:[~2009-10-07 9:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 9:21 中原 張 [this message]
2009-10-16 7:49 ` [Buildroot] relocation R_MIPS_HI16 against `_gp' can not be used when making a shared object; recompile with -fPIC Peter Korsgaard
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=689310.86704.qm@web73402.mail.tp2.yahoo.com \
--to=tnndclub@yahoo.com.tw \
--cc=buildroot@busybox.net \
/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