Skip to contentSkip to conversation

relocation R_MIPS_HI16 against `_gp' can not be used when making a shared object; recompile with -fPIC

Buildroot 中原 張 2 participants 2 messages Oct 7, 2009 – Oct 16, 2009

lore
Share & tools
lore

中原 張

author
#0 lore 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>

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"??" == ?? ? <[email protected]> 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?

Signature · 1 line
Bye, Peter Korsgaard