[PATCH] D58796: [llvm-readobj] Display section names for STT_SECTION symbols.
Matt Davis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 28 14:42:57 PST 2019
mattd created this revision.
mattd added reviewers: jhenderson, rupprecht.
Herald added subscribers: MaskRay, arichardson, javed.absar, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
mattd edited the summary of this revision.
This patch will obtain the section name for symbols that refer to a section. Prior to this patch the Name field for STT_SECTIONs was blank, now it is populated.
Before:
Symbol table '.symtab' contains 6 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 SECTION LOCAL DEFAULT 1
2: 0000000000000000 0 SECTION LOCAL DEFAULT 3
3: 0000000000000000 0 SECTION LOCAL DEFAULT 4
4: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND _GLOBAL_OFFSET_TABLE_
5: 0000000000000000 0 TLS GLOBAL DEFAULT UND sym
With this patch:
Symbol table '.symtab' contains 6 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 SECTION LOCAL DEFAULT 1 .text
2: 0000000000000000 0 SECTION LOCAL DEFAULT 3 .data
3: 0000000000000000 0 SECTION LOCAL DEFAULT 4 .bss
4: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND _GLOBAL_OFFSET_TABLE_
5: 0000000000000000 0 TLS GLOBAL DEFAULT UND sym
This fixes PR40788
https://reviews.llvm.org/D58796
Files:
llvm/test/MC/ARM/arm-elf-symver.s
llvm/test/MC/ELF/alias.s
llvm/test/MC/ELF/many-sections-2.s
llvm/test/MC/ELF/section-sym.s
llvm/test/MC/ELF/symver.s
llvm/test/MC/ELF/weakref.s
llvm/test/Object/readobj-shared-object.test
llvm/test/tools/llvm-readobj/sections-ext.test
llvm/test/tools/llvm-readobj/symbols.test
llvm/tools/llvm-readobj/ELFDumper.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58796.188791.patch
Type: text/x-patch
Size: 7243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190228/f12452f1/attachment.bin>
More information about the llvm-commits
mailing list