* [Buildroot] relocation R_MIPS_HI16 against `_gp' can not be used when making a shared object; recompile with -fPIC
@ 2009-10-07 9:21 中原 張
2009-10-16 7:49 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: 中原 張 @ 2009-10-07 9:21 UTC (permalink / raw)
To: buildroot
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] relocation R_MIPS_HI16 against `_gp' can not be used when making a shared object; recompile with -fPIC
2009-10-07 9:21 [Buildroot] relocation R_MIPS_HI16 against `_gp' can not be used when making a shared object; recompile with -fPIC 中原 張
@ 2009-10-16 7:49 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2009-10-16 7:49 UTC (permalink / raw)
To: buildroot
>>>>> "??" == ?? ? <tnndclub@yahoo.com.tw> writes:
Hi,
??> 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?
What package is this?
??> 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
200807 release? We didn't have a release called that. Do you mean a svn
snapshot from that day?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-16 7:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-07 9:21 [Buildroot] relocation R_MIPS_HI16 against `_gp' can not be used when making a shared object; recompile with -fPIC 中原 張
2009-10-16 7:49 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.