Re: Add section caches to coff_data_type
authorAlan Modra <amodra@gmail.com>
Thu, 18 May 2023 08:13:14 +0000 (17:43 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 18 May 2023 08:31:49 +0000 (18:01 +0930)
commit204d627e83f440dc62871139a688b58c42149f59
tree917eb57ca0145236d2fe0c4cc286462243df68af
parent92240b19576f2b71719b952f150c8a781e6e5398
Re: Add section caches to coff_data_type

Another thing, section target_index is renumbered in
coff_compute_section_file_positions and _bfd_xcoff_bfd_final_link.  I
don't know that there is currently any way that the output bfd
section_by_target_index could be populated before this point but
clear them out so no one need worry about it.

* coffcode.h (coff_compute_section_file_positions): Clear
section_by_target_index hash table when changing target_index.
(_bfd_xcoff_bfd_final_link): Likewise.
bfd/coffcode.h
bfd/xcofflink.c