[Bug binutils/29566] objdump -p considers an empty .gnu.version_r invalid

2022-09-21 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29566

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Alan Modra :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f9a59eea78428159a9522bd64ec354a872f1dc31

commit f9a59eea78428159a9522bd64ec354a872f1dc31
Author: Alan Modra 
Date:   Wed Sep 21 19:34:08 2022 +0930

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/29566] objdump -p considers an empty .gnu.version_r invalid

2022-09-21 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29566

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED
   Target Milestone|--- |2.40

--- Comment #5 from Alan Modra  ---
Fixed for 2.40

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/29566] objdump -p considers an empty .gnu.version_r invalid

2022-09-21 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29566

Alan Modra  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

--- Comment #3 from Alan Modra  ---
OK, so if we have linkers that produce them, I suppose they ought to be
allowed.  Easily done.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/29566] objdump -p considers an empty .gnu.version_r invalid

2022-09-21 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29566

--- Comment #2 from Fangrui Song  ---
The spec
(https://sourceware.org/gnu-gabi/program-loading-and-dynamic-linking.txt)
doesn't reject it. For a section whose content is a concatenated N items, the
ELF spirits typically allows N==0, as otherwise it needs an additional sentence
to disallow the case, which is unnecessary.

It seems that the reference implementation of Go may generate .gnu.version_r at
least in some cases: https://github.com/llvm/llvm-project/issues/57707

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/29566] objdump -p considers an empty .gnu.version_r invalid

2022-09-21 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29566

--- Comment #1 from Alan Modra  ---
Is there any point in allowing an empty .gnu.version_r section?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/29566] objdump -p considers an empty .gnu.version_r invalid

2022-09-14 Thread herrtimson at yahoo dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29566

tt_1  changed:

   What|Removed |Added

 CC||herrtimson at yahoo dot de

-- 
You are receiving this mail because:
You are on the CC list for the bug.