]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf.c
PR29566, objdump -p considers an empty .gnu.version_r invalid
authorAlan Modra <amodra@gmail.com>
Wed, 21 Sep 2022 10:04:08 +0000 (19:34 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Sep 2022 12:40:14 +0000 (22:10 +0930)
commitf9a59eea78428159a9522bd64ec354a872f1dc31
tree68c6e1c900ed8a8d1a538a27e7368f3cd3ddee29
parentacab2a6872db8e6ebab3e91bc22a4df384d1c8ed
PR29566, objdump -p considers an empty .gnu.version_r invalid

Allow and ignore an empty section.

PR 29566
* elf.c (bfd_section_from_shdr): Don't set elf_dynverdef or
elf_dynverref for empty sections.
(_bfd_elf_slurp_version_tables): Remove now redundant tests.
bfd/elf.c