[binutils-gdb] Replace uses of strncmp with memcmp

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Mon May 7 03:23:00 GMT 2018


*** TEST RESULTS FOR COMMIT 7bd8862c3ad0ee291d27837ae3cd30288a00b922 ***

Author: Alan Modra <amodra@gmail.com>
Branch: master
Commit: 7bd8862c3ad0ee291d27837ae3cd30288a00b922

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.



More information about the Gdb-testers mailing list