This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Miscellaneous fixes for testsuite failures on hppa64-hp-hpux11.00
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Cc: binutils at sources dot redhat dot com, amodra at bigpond dot net dot au, law at redhat dot com
- Date: Thu, 6 Jun 2002 02:05:23 -0400 (EDT)
- Subject: Re: Miscellaneous fixes for testsuite failures on hppa64-hp-hpux11.00
> There is one additional failure with gcc which I am currently investigating.
The test ld-scripts/crossref.exp fails when ld is compiled with gcc but
not the HP ansi compiler. Here is the test output with the HP compiler:
Running /xxx/gnu/binutils-2.12.90/src/ld/testsuite/ld-scripts/crossref.exp ...
/opt/gnu64/bin/gcc -L/xxx/gnu/binutils-2.12.90/objdir64/ld -B/xxx/gnu/binutils-2
.12.90/objdir64/ld/tmpdir/gas/ -I/xxx/gnu/binutils-2.12.90/src/ld/testsuite/ld-s
cripts -c /xxx/gnu/binutils-2.12.90/src/ld/testsuite/ld-scripts/cross1.c -o tm
pdir/cross1.o
/opt/gnu64/bin/gcc -L/xxx/gnu/binutils-2.12.90/objdir64/ld -B/xxx/gnu/binutils-2
.12.90/objdir64/ld/tmpdir/gas/ -I/xxx/gnu/binutils-2.12.90/src/ld/testsuite/ld-s
cripts -c /xxx/gnu/binutils-2.12.90/src/ld/testsuite/ld-scripts/cross2.c -o tm
pdir/cross2.o
/xxx/gnu/binutils-2.12.90/objdir64/ld/ld-new -o tmpdir/cross1 -T /xxx/gnu/binut
ils-2.12.90/src/ld/testsuite/ld-scripts/cross1.t tmpdir/cross1.o tmpdir/cross2.o
/xxx/gnu/binutils-2.12.90/objdir64/ld/ld-new: BFD 2.12.90 20020606 assertion fai
l ../../src/bfd/elflink.h:5735
/xxx/gnu/binutils-2.12.90/objdir64/ld/ld-new: BFD 2.12.90 20020606 assertion fai
l ../../src/bfd/elflink.h:5735
/xxx/gnu/binutils-2.12.90/objdir64/ld/ld-new: BFD 2.12.90 20020606 assertion fai
l ../../src/bfd/elflink.h:5735
tmpdir/cross1.o: In function `func':
tmpdir/cross1.o(.text+0x1c): prohibited cross reference from .text to `foo' in .
data
PASS: NOCROSSREFS 1
The code is
o = bfd_get_section_by_name (abfd, name);
BFD_ASSERT (o != NULL);
dyn.d_un.d_ptr = o->vma;
With gcc, the NULL pointer causes a segmentation fault but with the HP
compiler this appears not to be the default behavior. The first assertion
failure is caused by trying to get the section pointer for the ".hash"
section. In the output abfd, there are 7 sections but only
1 .opd
2 .text
3 .data
7 .dynamic
have non-null section pointers.
I had thought that this was a gcc problem but this appears not to be
the case.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)