This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.0 PATCH RFC: Major Solaris 2 configuration cleanup
> From: Alexandre Oliva <aoliva@redhat.com>
> Date: 29 May 2001 07:02:38 -0300
>
> The assembler crash is no longer there, but the linker still complains:
>
> ld: fatal: relocation error: R_SPARC_32: file t.o: symbol <unknown>: offset 0xef30153a is non-aligned
In that case I guess GCC needs an autoconf test to tell whether the
linker error is present. Here's a shell script that should fail if
the bug is present. I think this script is architecture independent,
but I've tested it only on sparc.
# This assembly-language program won't run, but that's OK; all we care
# is whether it will link.
cat >test.s <<'EOF'
.section ".text"
main:
.section ".foo"
.byte 0
.section ".bar"
.uaword main
EOF
/usr/ccs/bin/as test.s
/usr/ccs/bin/ld test.o