1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test
Matt Davis 9fd9c8face [llvm-readobj] Display section names for STT_SECTION symbols.
Summary:
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

Reviewers: jhenderson, rupprecht, espindola

Reviewed By: rupprecht

Subscribers: emaste, javed.absar, arichardson, MaskRay, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58796

llvm-svn: 355207
2019-03-01 17:31:32 +00:00
..
Analysis [MemorySSA] Make insertDef insert corresponding phi nodes. 2019-02-27 22:20:22 +00:00
Assembler
Bindings
Bitcode Fix auto-upgrade for the new parameter to llvm.objectsize 2019-02-12 21:55:38 +00:00
BugPoint
CodeGen [ARM] Fix FP16 stack loads/stores for Thumb2 with frame pointer 2019-03-01 14:20:28 +00:00
DebugInfo Update testcase since llvm-dwarfdump got more accurate in r355148. 2019-02-28 22:26:00 +00:00
Demangle
Examples Fix a think-o in the disable-kaleidoscope-tests-on-windows predicate of r354646. 2019-02-22 03:56:50 +00:00
ExecutionEngine
Feature
FileCheck
Instrumentation [sancov] Instrument reachable blocks that end in unreachable 2019-02-28 22:54:30 +00:00
Integer
JitListener
Linker
LTO
MachineVerifier GlobalISel: Verify g_insert 2019-02-19 16:10:16 +00:00
MC [llvm-readobj] Display section names for STT_SECTION symbols. 2019-03-01 17:31:32 +00:00
Object [llvm-readobj] Display section names for STT_SECTION symbols. 2019-03-01 17:31:32 +00:00
ObjectYAML [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
Other [HotColdSplit] Schedule splitting late to fix perf regression 2019-02-15 18:46:44 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen [Tablegen] Add support for the !mul operator. 2019-03-01 09:46:29 +00:00
ThinLTO/X86 [ThinLTO] Use defined node and edge order when dumping DOT file 2019-02-26 07:38:21 +00:00
tools [llvm-readobj] Display section names for STT_SECTION symbols. 2019-03-01 17:31:32 +00:00
Transforms [InstCombine] add tests for add+umin/umax canonicalization; NFC 2019-03-01 17:29:10 +00:00
Unit
Verifier [llvm] Fix typo: 's/ ot / to /' [NFC] 2019-02-21 20:04:20 +00:00
YAMLParser
.clang-format
CMakeLists.txt [Kaleidoscope] Re-enable Kaleidoscope tests. 2019-02-21 22:24:53 +00:00
lit.cfg.py
lit.site.cfg.py.in [Kaleidoscope] Re-enable Kaleidoscope tests. 2019-02-21 22:24:53 +00:00
TestRunner.sh