[PATCH] RFC: Clearing st_value of PLT SHN_UNDEF symbols if pointer equality not needed

Alan Modra amodra@bigpond.net.au
Tue Nov 18 13:23:00 GMT 2003


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



More information about the Binutils mailing list