This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
unresolvable R_PPC_REL16_{HA,LO} relocation against symbol
- From: Hiroki Kaminaga <kaminaga at sm dot sony dot co dot jp>
- To: binutils at sourceware dot org
- Cc: kaminaga at sm dot sony dot co dot jp
- Date: Wed, 08 Nov 2006 13:57:06 +0900 (JST)
- Subject: unresolvable R_PPC_REL16_{HA,LO} relocation against symbol
Hi,
I'm using toolchain version:
gcc-4.1.1
glibc-2.5
binutils-2.17
and trying to cross compile glibc-2.5 for powerpc on i386 host machine.
I get below error:
/usr/local/powerpc-gnu-linux/devel/lib/gcc/powerpc-gnu-linux/4.1.1/../../../../powerpc-gnu-linux/bin/ld: /var/rpm/BUILD/glibc-2.5/objdir/linuxthreads/libpthread_pic.a(ptw-write.os)(.text+0xe): unresolvable R_PPC_REL16_HA relocation against symbol `__librt_multiple_threads@@GLIBC_PRIVATE'
/usr/local/powerpc-gnu-linux/devel/lib/gcc/powerpc-gnu-linux/4.1.1/../../../../powerpc-gnu-linux/bin/ld: /var/rpm/BUILD/glibc-2.5/objdir/linuxthreads/libpthread_pic.a(ptw-write.os)(.text+0x12): unresolvable R_PPC_REL16_LO relocation against symbol `__librt_multiple_threads@@GLIBC_PRIVATE'
/usr/local/powerpc-gnu-linux/devel/lib/gcc/powerpc-gnu-linux/4.1.1/../../../../powerpc-gnu-linux/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[2]: *** [/var/rpm/BUILD/glibc-2.5/objdir/linuxthreads/libpthread.so] Error 1
make[2]: Leaving directory `/var/rpm/BUILD/glibc-2.5/linuxthreads'
make[1]: *** [linuxthreads/others] Error 2
* * * * *
when I changed to different binutils version and build again,
below is the result:
binutils-2.16.1 + glibc-2.5 + gcc-4.1.1 = OK
binutils-2.17 + glibc-2.5 + gcc-4.1.1 = NG
binutils-2.17.50.0.6 + glibc-2.5 + gcc-4.1.1 = NG
Please tell me:
1) is this the right list?
2) am I missing any information?
3) is this binutils bug? or glibc?
4) any pointer/info to solve this problem?
Thanks in Advance.
(Hiroki Kaminaga)
t
--