bfd_get_section_by_name_if hash chain traversal
authorAlan Modra <amodra@gmail.com>
Fri, 24 Jul 2015 05:06:38 +0000 (14:36 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 24 Jul 2015 05:18:35 +0000 (14:48 +0930)
commit2fb9328d8daa751f3b71745636323eddccaaacce
tree7b6999ce51cd5262e260d667f6a07b625b7555f3
parentf0b0791b05ed335e5d74d843d828645805db1f9c
bfd_get_section_by_name_if hash chain traversal

This function stops too soon, as I found when the hash chain happened
to contain two .debug_macro sections and a .bss section:
.debug_macro -> .bss -> .debug_macro

* section.c (bfd_get_section_by_name_if): Iterate over entire hash
chain.
bfd/ChangeLog
bfd/section.c