c++/java relocation errors on sparc-sun-solaris2.7 (Re: More info on Java coredump on sparc Solaris)

Jeff Sturm jsturm@one-point.com
Mon May 21 06:56:00 GMT 2001


Martin Kahlert wrote:
> dbx ./hello
> Reading hello
> Reading ld.so.1
> signal BUS (invalid address alignment) in elf_reloc_relative at 0xff3c5a94
> 0xff3c5a94: elf_reloc_relative+0x002c:  ld      [%g1 + %i3], %l0

Thanks.  I've reproduced the failure with my build.  Solaris 2.7 ld.so.1
gives a more helpful message:

$ ./hello
ld.so.1: ./hello: fatal: relocation error: R_SPARC_32: file
/opt/gcc/lib/libgcj.
so.2: symbol __gxx_personality_v0: offset 0xff2e2319 is non-aligned
ld.so.1: ./hello: fatal: relocation error: R_SPARC_32: file
/opt/gcc/lib/libgcj.
so.2: symbol __gxx_personality_v0: offset 0xff2e2829 is non-aligned
ld.so.1: ./hello: fatal: relocation error: R_SPARC_32: file
/opt/gcc/lib/libgcj.
so.2: symbol __gcj_personality_v0: offset 0xff2e28c2 is non-aligned
Bus Error(coredump)

I'm copying the gcc list since C++ programs exhibit a similar failure.

This is with gcc version 3.0 20010517 (prerelease).

Jeff



More information about the Java mailing list