problems with sparc32 build
Jakub Jelinek
jakub@redhat.com
Sat Feb 1 11:27:00 GMT 2003
On Fri, Jan 31, 2003 at 09:15:53AM +0100, Andreas Jaeger wrote:
> Jakub Jelinek <jakub@redhat.com> writes:
>
> > That obviously needs to be changed to -fcall-used-g6 when the roles of the
> > 2 registers swapped.
>
> Thanks, that helped. Now it's failing in a different place but this
> looks like a binutils bug:
>
> CPP='gcc -m32 -E -x c-header' /usr/src/packages/BUILD/glibc-2.3/cc/elf/ld-linux.so.2 --library-path /usr/src/packages/BUILD/glibc-2.3/cc:/usr/src/packages/BUILD/glibc-2.3/cc/math:/usr/src/packages/BUILD/glibc-2.3/cc/elf:/usr/src/packages/BUILD/glibc-2.3/cc/dlfcn:/usr/src/packages/BUILD/glibc-2.3/cc/nss:/usr/src/packages/BUILD/glibc-2.3/cc/nis:/usr/src/packages/BUILD/glibc-2.3/cc/rt:/usr/src/packages/BUILD/glibc-2.3/cc/resolv:/usr/src/packages/BUILD
> /glibc-2.3/cc/crypt:/usr/src/packages/BUILD/glibc-2.3/cc/linuxthreads /usr/src/packages/BUILD/glibc-2.3/cc/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /usr/src/packages/BUILD/glibc-2.3/cc/sunrpc/xbootparam_prot.T
> /usr/src/packages/BUILD/glibc-2.3/cc/sunrpc/rpcgen: error while loading shared libraries: /usr/src/packages/BUILD/glibc-2.3/cc/libc.so.6: unexpected reloc type 0x08
>
> $ readelf -r libc.so.6 |grep R_SPARC_WDISP22
> Relocation section '.rela.dyn' at offset 0x11ec4 contains 3498 entries:
> Offset Info Type Sym.Value Sym. Name + Addend
> [...]
> 000c0208 00000a08 R_SPARC_WDISP22 0001c5c0 .text + c0180
>
> Might be a bug in binutils's hidden support (this is version
> 2.13.90.0.18),
Can you try CVS binutils?
When testing this I was using binutils-2.13.90.0.16 + the SPARC32
TLS+reloc rework patch and haven't seen such problems (only tst-tls4
failed in make check).
Jakub
More information about the Libc-hacker
mailing list