bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/29566] New: objdump -p considers an empty .gnu.version_r i


From: i at maskray dot me
Subject: [Bug binutils/29566] New: objdump -p considers an empty .gnu.version_r invalid
Date: Tue, 13 Sep 2022 07:18:19 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29566

            Bug ID: 29566
           Summary: objdump -p considers an empty .gnu.version_r invalid
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: i at maskray dot me
  Target Milestone: ---

% cat a.yaml
--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_EXEC
  Machine: EM_X86_64
Sections:
  - Name:            .gnu.version_r
    Type:            SHT_GNU_verneed
    Flags:           [ SHF_ALLOC ]
DynamicSymbols:
  - Name:    f1
    Binding: STB_GLOBAL
% yaml2obj a.yaml -o a.o    # a utility from llvm-project . On Debian, the
package "llvm" contains it.
% objdump -p a.o

a.o:     file format elf64-x86-64
objdump: a.o: .gnu.version_r invalid entry
objdump: warning: private headers incomplete: bad value

% readelf -V a.o

Version needs section '.gnu.version_r' contains 0 entries:
 Addr: 0x0000000000000000  Offset: 0x000040  Link: 3 (.dynstr)

---

objdump -p gives a warning while readelf -V doesn't.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]