This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ELIMINATE_COPY_RELOCS problems on ppc
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 3 Apr 2003 08:45:09 +0930
- Subject: Re: ELIMINATE_COPY_RELOCS problems on ppc
- References: <20030402144228.GP16629@sunsite.ms.mff.cuni.cz>
On Wed, Apr 02, 2003 at 04:42:28PM +0200, Jakub Jelinek wrote:
> segfaults the linker on ppc32 (while it used to work just fine
Thanks, the testcase is really useful! I had been trying to debug
this problem by remote-control with someone at Gentoo without
much luck. It turns out that the root of the problem is
SYMBOL_REFERENCES_LOCAL in ppc_elf_check_relocs, in combination
with reference counting of the plt. Previous versions of ppc
binutils didn't properly reference count the plt, and check_relocs
is too early to decide whether a symbol is really local.
I'll cook up a fix.
--
Alan Modra
IBM OzLabs - Linux Technology Centre