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: law at redhat dot com
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: binutils at sources dot redhat dot com, amodra at bigpond dot net dot au
- Date: Thu, 06 Jun 2002 00:17:22 -0600
- Subject: Re: Miscellaneous fixes for testsuite failures on hppa64-hp-hpux11.00
- Reply-to: law at redhat dot com
In message <200206060605.g5665NmJ021745@hiauly1.hia.nrc.ca>, "John David
Anglin" writes:
> 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
[ ... ]
Yes, by default, GCC will arrange to pass the right magic flags to ld to
get segfaults on a null pointer dereference. HP's compiler's by default
allow the null pointer dereference.
Jeff