[PATCH 2/5] Use startswith more for strncmp function calls.

Martin Liska mliska@suse.cz
Thu Mar 18 14:16:54 GMT 2021


bfd/ChangeLog:

	* elf-bfd.h (bfd_section_is_ctf): Use startswith function.
	* elf.c (_bfd_elf_make_section_from_shdr): Likewise.
	(elf_get_reloc_section): Likewise.
	* elf32-arc.c (elf_arc_size_dynamic_sections): Likewise.
	* elf32-m32r.c (m32r_elf_section_flags): Likewise.
	* elf32-microblaze.c (microblaze_elf_size_dynamic_sections): Likewise.
	* elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
	(nds32_elf_relocate_section): Likewise.
	(nds32_elf_action_discarded): Likewise.
	(nds32_elf_check_relocs): Likewise.
	(nds32_elf_section_flags): Likewise.
	* elf32-or1k.c (or1k_elf_check_relocs): Likewise.
	* elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
	* elf32-rx.c (rx_table_find): Likewise.
	(rx_table_map): Likewise.
	* elf32-spu.c (spu_elf_backend_symbol_processing): Likewise.
	(spu_elf_find_overlays): Likewise.
	(needs_ovl_stub): Likewise.
	(allocate_spuear_stubs): Likewise.
	(build_spuear_stubs): Likewise.
	(mark_overlay_section): Likewise.
	(spu_elf_auto_overlay): Likewise.
	(spu_elf_output_symbol_hook): Likewise.
	* elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
	* elf32-xtensa.c (xtensa_property_section_name): Likewise.
	* elf64-ppc.c (ppc64_elf_section_flags): Likewise.
	(ppc64_elf_relocate_section): Likewise.
	* elflink.c (resolve_section): Likewise.
	(UNARY_OP): Likewise.
	(BINARY_OP_HEAD): Likewise.
	(elf_link_input_bfd): Likewise.
	* elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise.
	* elfxx-riscv.c (riscv_parse_subset): Likewise.
	* elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
	* opncls.c (get_build_id): Likewise.

binutils/ChangeLog:

	* dllwrap.c: Use startswith function.
	* objcopy.c (is_dwo_section): Likewise.
	(handle_remove_section_option): Likewise.
	(copy_main): Likewise.
	* objdump.c (is_significant_symbol_name): Likewise.
---
 bfd/elf-bfd.h          |  3 ++-
 bfd/elf.c              | 21 ++++++++++-----------
 bfd/elf32-arc.c        |  2 +-
 bfd/elf32-m32r.c       |  4 ++--
 bfd/elf32-microblaze.c |  2 +-
 bfd/elf32-nds32.c      | 13 ++++++-------
 bfd/elf32-or1k.c       |  2 +-
 bfd/elf32-ppc.c        |  6 +++---
 bfd/elf32-rx.c         |  6 +++---
 bfd/elf32-spu.c        | 26 +++++++++++++-------------
 bfd/elf32-tilepro.c    |  2 +-
 bfd/elf32-xtensa.c     |  2 +-
 bfd/elf64-ppc.c        |  6 +++---
 bfd/elflink.c          | 10 +++++-----
 bfd/elfnn-riscv.c      |  2 +-
 bfd/elfxx-riscv.c      |  4 ++--
 bfd/elfxx-tilegx.c     |  2 +-
 bfd/opncls.c           |  2 +-
 binutils/dllwrap.c     |  8 ++++----
 binutils/objcopy.c     | 20 ++++++++++----------
 binutils/objdump.c     |  2 +-
 21 files changed, 72 insertions(+), 73 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Use-startswith-more-for-strncmp-function-calls.patch
Type: text/x-patch
Size: 21614 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20210318/9f707eb6/attachment.bin>


More information about the Binutils mailing list