This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [committed] Fix ld segfault on hppa-unknown-linux-gnu
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: binutils at sources dot redhat dot com
- Date: Sat, 18 Oct 2003 10:03:19 +0930
- Subject: Re: [committed] Fix ld segfault on hppa-unknown-linux-gnu
- References: <200310171646.h9HGk18J018427@hiauly1.hia.nrc.ca>
On Fri, Oct 17, 2003 at 12:46:01PM -0400, John David Anglin wrote:
> This fixes a segfaulted encounter linking libjava on hppa-unknown-linux-gnu.
> * elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if
> output section has been discarded.
This leaves R_PARISC_NONE relocs in the output, doesn't it? Appropriate
tweaking in allocate_dynrelocs should cure that.
Hmm, what really needs to be done is for the dyn rel code in
check_relocs, allocate_dynrelocs and relocate_section to be updated to
use SYMBOL_CALLS_LOCAL and/or SYMBOL_REFS_LOCAL. Maybe I ought to do
that.. Trouble is, it's not so easy for me to test hppa stuff these
days.
--
Alan Modra
IBM OzLabs - Linux Technology Centre