]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
objdump: is_same_section
authorAlan Modra <amodra@gmail.com>
Fri, 28 Feb 2025 07:26:48 +0000 (17:56 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 3 Mar 2025 21:53:16 +0000 (08:23 +1030)
commita8a9fc74297636d8e6502c090d51f46f82aae1ea
treec016bbacdc1c525aec098dea77894ca5442f20a4
parent7166166ec098b998dbd48e90be40ce880f7d46de
objdump: is_same_section

This fixes a deficiency in commit 660df28acfa1, which should have used
the same logic as that in sym_ok.  Ideally both places would not
compare section names, but it can be a little tricky to match a
section in the real object file with a section in a debug file.
Extend commit 39f0547e554d to use section name, vma and size.

* objcopy (is_same_section): New function.
(compare_symbols, sym_ok): Use it here.
binutils/objdump.c