]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
nm: fall back to heuristic when ELF symbol has zero size
authorJan Beulich <jbeulich@suse.com>
Mon, 7 Apr 2025 10:45:30 +0000 (12:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Apr 2025 10:45:30 +0000 (12:45 +0200)
commite71f5f09ce75ed54c75fd5a7ca47f0452081e26e
tree69867a0a1db28a6518a634e7af818837d7a93964
parent6fe5e01b131716e3000edb5c6b4a1d1a26dd144c
nm: fall back to heuristic when ELF symbol has zero size

Size being set for a symbol isn't a strict requirement in ELF. For ones
not having their size set, fall back to the same logic as used for non-
ELF, non-COFF symbols.

While there switch to using elf_symbol_from() instead of kind of open-
coding it.
binutils/nm.c