[llvm-bugs] [Bug 43850] New: Make GNU style symbol printing invalid symbol section indexes match GNU readelf
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Oct 30 09:58:39 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43850
Bug ID: 43850
Summary: Make GNU style symbol printing invalid symbol section
indexes match GNU readelf
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: llvm-readobj
Assignee: unassignedbugs at nondot.org
Reporter: jh7370.2008 at my.bristol.ac.uk
CC: jh7370.2008 at my.bristol.ac.uk, llvm-bugs at lists.llvm.org
When a symbol's st_shndx value is invalid due to it being larger than the
number of sections, GNU readelf prints "bad section index[ XX]" for the section
index column (where XX is the raw value). This also applies if the value is
derived from the .symtab_shndx section:
C:\Work> readelf --symbols test.o
Symbol table '.symtab' contains 3 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000 0 NOTYPE LOCAL DEFAULT bad section index[ 67] invalid
2: 00000000 0 NOTYPE LOCAL DEFAULT bad section index[ 42]
invalid_shndx
llvm-readelf prints simply the value (derived from the .symtab_shndx section if
appropriate).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191030/be064358/attachment.html>
More information about the llvm-bugs
mailing list