Replace uses of strncmp with memcmp
authorAlan Modra <amodra@gmail.com>
Mon, 7 May 2018 02:06:07 +0000 (11:36 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 7 May 2018 03:03:26 +0000 (12:33 +0930)
commit7bd8862c3ad0ee291d27837ae3cd30288a00b922
tree418131f989551335d6f8eead366d563d02dac1a4
parentfe5bc53b24ea5b61b1ff280b737db5ed14c00142
Replace uses of strncmp with memcmp

Avoids gcc pr85623 for these calls.

* cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
strncmp when checking for ".bf" special symbol.
* prXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
section name a char array, remove sentinal known_sections entry,
and adjust loop over known_sections to suit.  Use memcmp rather
than strncmp.
bfd/ChangeLog
bfd/cofflink.c
bfd/peXXigen.c