those pesky absolute symbols

H.J. Lu hjl.tools@gmail.com
Fri May 18 22:28:00 GMT 2012


On Wed, May 16, 2012 at 7:44 PM, Alan Modra <amodra@gmail.com> wrote:
> This makes _DYNAMIC, _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_
> section relative for PowerPC.  There is no ABI requirement that these
> symbols be absolute as far as I can see, and as discussed previously,
> no symbols corresponding to a program image virtual address ought to
> be absolute.  (_etext and suchlike should be fixed too, but I'm not
> going to rush into that change.)
>
> bfd/
>        * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make _DYNAMIC,
>        _GLOBAL_OFFSET_TABLE_ or _PROCEDURE_LINKAGE_TABLE_ absolute.
>        * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Don't make _DYNAMIC
>        absolute.

I checked in a similar patch for x86-64 and i386.


-- 
H.J.
--
bfd/

	* elf32-i386.c (elf_i386_finish_dynamic_symbol): Don't make
	_DYNAMIC nor _GLOBAL_OFFSET_TABLE_ absolute.
	* elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.

ld/testsuite/

	* ld-i386/tlsdesc-nacl.rd: Update for dynamic sym changes.
	* ld-i386/tlsdesc.rd: Likewise.
	* ld-i386/tlsgdesc-nacl.rd: Likewise.
	* ld-i386/tlsgdesc.rd: Likewise.
	* ld-i386/tlsnopic-nacl.rd: Likewise.
	* ld-i386/tlsnopic.rd: Likewise.
	* ld-i386/tlspic-nacl.rd: Likewise.
	* ld-i386/tlspic.rd: Likewise.
	* ld-x86-64/tlsdesc-nacl.rd: Likewise.
	* ld-x86-64/tlsdesc.rd: Likewise.
	* ld-x86-64/tlsgdesc-nacl.rd: Likewise.
	* ld-x86-64/tlsgdesc.rd: Likewise.
	* ld-x86-64/tlspic-nacl.rd: Likewise.
	* ld-x86-64/tlspic.rd: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-dynamic.patch
Type: application/octet-stream
Size: 17011 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20120518/c7969a83/attachment.obj>


More information about the Binutils mailing list