This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] RFC: Clearing st_value of PLT SHN_UNDEF symbols if pointer equality not needed
- 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, drepper at redhat dot com
- Date: Tue, 18 Nov 2003 23:53:52 +1030
- Subject: Re: [PATCH] RFC: Clearing st_value of PLT SHN_UNDEF symbols if pointer equality not needed
- References: <20031117081245.GG12344@sunsite.ms.mff.cuni.cz>
On Mon, Nov 17, 2003 at 09:12:45AM +0100, Jakub Jelinek wrote:
> * elf-bfd.h (ELF_LINK_POINTER_EQUALITY_NEEDED): Define new flag.
> * elf.c (_bfd_elf_link_hash_copy_indirect): Copy it.
> * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
> (elf_i386_check_relocs): Set it.
> (elf_i386_finish_dynamic_symbol): If it is not set,
> clear st_value of SHN_UNDEF symbol.
I think the idea is probably OK, so go ahead and commit.
--
Alan Modra
IBM OzLabs - Linux Technology Centre