[RFA:] elflink.c: Hide _GLOBAL_OFFSET_TABLE_

Eric Botcazou ebotcazou@libertysurf.fr
Sun Jan 9 09:56:00 GMT 2005


> I prefer this one.  Mostly because it restores old behaviour with
> respect to got relocs.  Also, at some stage I might change selected
> backends over to use just one section symbol (or the zero sym) for
> dynamic relocs.  If you're using a local G_O_T sym, I'll probably
> assume the sparc backend wants it that way for some arcane reason..

Fine with me, installed.

May I install the cleanup part of the discarded patch though?  The rationale 
for the SPARC 64-bit changes is to make the 64-bit code more similar to the 
32-bit code.


2005-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* elf32-sparc.c (elf32_sparc_link_hash_table_create): Use bfd_zmalloc
	to zero the structure.
	(create_got_section): Use BFD_ASSERT instead of abort.
	* elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and
	'srelgot' fields.
	(create_got_section): New function.
	(sparc64_elf_create_dynamic_sections): Likewise.
	(sparc64_elf_check_relocs): Invoke create_got_section instead of
	_bfd_elf_create_got_section.  Use the sgot and srelgot shortcuts.
	(sparc64_elf_size_dynamic_sections): Use the srelgot shortcut.
	(sparc64_elf_relocate_section): Use the sgot and srelgot shortcuts.
	(sparc64_elf_finish_dynamic_symbol): Likewise.
	(sparc64_elf_finish_dynamic_sections): Use the sgot shortcut.
	(elf_backend_create_dynamic_sections): Define to
	sparc64_elf_create_dynamic_sections.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd_sparc_cleanup.diff
Type: text/x-diff
Size: 7657 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050109/ef1cb0ec/attachment.bin>


More information about the Binutils mailing list