simplify Xtensa size_dynamic_sections code
Bob Wilson
bwilson@tensilica.com
Mon Feb 5 18:03:00 GMT 2007
The elf_xtensa_size_dynamic_sections function was using 3 separate traversals of
the symbol hash table. This patch combines all the work into a single pass. It
also removes the hide_symbol hook, since there doesn't seem to be any need for
it: the Xtensa-specific work being done there can be handled later in
size_dynamic_sections. Tested with an xtensa-elf build and committed.
bfd/
* elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
(elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
(elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
(elf_xtensa_allocate_got_size): Replace these with...
(elf_xtensa_allocate_dynrelocs): ...this new function.
(elf_xtensa_size_dynamic_sections): Use it.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bfd-alloc-dynrel.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20070205/9783b5a6/attachment.ksh>
More information about the Binutils
mailing list