1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/Object
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
..
AArch64 [obj2yaml] - Dump the sh_entsize section field. 2019-01-28 15:05:10 +00:00
AMDGPU AMDGPU: Enable code object v3 for AMDHSA only 2018-11-15 02:32:43 +00:00
ARM
Inputs Limit dyld image suffixes guessed by guessLibraryShortName() 2019-01-24 20:59:44 +00:00
Lanai
Mips [obj2yaml] - Dump the sh_entsize section field. 2019-01-28 15:05:10 +00:00
RISCV
X86 simplify COFF module assembly test and move it to Object 2019-01-25 00:33:05 +00:00
ar-create.test [libObject] Tweak expected error output from llvm-ar 2019-01-15 22:03:08 +00:00
ar-error.test [libObject] Tweak expected error output from llvm-ar 2019-01-15 22:03:08 +00:00
archive-darwin-duplicates.test Give same-named members unique timestamps on Darwin in llvm-ar. 2018-10-04 18:49:21 +00:00
archive-delete.test
archive-error-tmp.txt
archive-extract-dir.test
archive-extract.test [libObject] Tweak expected error output from llvm-ar 2019-01-15 22:03:08 +00:00
archive-format.test [Object] Deduplicate long archive member names 2018-12-19 16:15:05 +00:00
archive-long-filenames-no-null-terminator.test Add a test for r331746. 2018-05-09 08:20:14 +00:00
archive-long-index.test
archive-move.test
archive-pad.test
archive-replace-pos.test
archive-symtab.test llvm-ar: Darwin archive format fixes. 2018-10-10 21:07:02 +00:00
archive-thin-create.test
archive-thin-paths.test
archive-thin-read.test
archive-toc.test [llvm-ar] Use POSIX-specified timestamps for 'tv'. 2018-10-05 23:25:39 +00:00
archive-update.test
check_binary_output.ll
coff-archive-short.test
coff-archive.test
coff-empty-drectve.test
coff-invalid.test
coff-weak-externals.test
corrupt.test
directory.ll
dllimport-globalref.ll
dllimport.ll
dyn-rel-relocation.test
dynamic-reloc.test
elf-invalid-phdr.test
elf-reloc-no-sym.test
elf-unknown-type.test
invalid-alignment.test
invalid.test
kext.test
lit.local.cfg
macho-invalid.test
mangle-ir.ll
mri1.test
mri2.test
mri3.test
mri4.test
mri5.test
mri-addlib.test
mri-addmod.test
mri-crlf.test
multi-module.ll
nm-archive.test
nm-darwin-m.test Limit dyld image suffixes guessed by guessLibraryShortName() 2019-01-24 20:59:44 +00:00
nm-error.test
nm-irix6.test
nm-pe-image.test
nm-shared-object.test [llvm-nm] Write "no symbol" output to stderr 2018-10-05 21:10:03 +00:00
nm-trivial-object.test [llvm-nm] Report '.comment' ELF sections as 'n' instead of '?' 2019-02-01 17:38:08 +00:00
nm-universal-binary.test
nm-weak-global-macho.test
no-section-header-string-table.test
no-section-table.test
obj2yaml-coff-long-file-symbol.test
obj2yaml-coff-long-section-name.test
obj2yaml-coff-section-aux-symbol.test
obj2yaml-coff-weak-external.test
obj2yaml-invalid-reloc.test Fix BB after r354661 2019-02-22 08:58:23 +00:00
obj2yaml-sectiongroup.test
obj2yaml.test Fix BB after r354661 2019-02-22 08:58:23 +00:00
objc-imageinfo-coff.ll
objc-imageinfo-elf.ll
objc-imageinfo-macho.ll
objdump-export-list.test
objdump-file-header.test
objdump-no-sectionheaders.test [llvm-objdump] - Print LMAs when dumping section headers. 2019-01-28 14:11:35 +00:00
objdump-private-headers.test
objdump-reloc-shared.test
objdump-relocations.test [WebAssembly] Rename relocations from R_WEBASSEMBLY_ to R_WASM_ 2019-02-04 17:28:46 +00:00
objdump-section-content.test
objdump-sectionheaders.test [llvm-objdump] - Print LMAs when dumping section headers. 2019-01-28 14:11:35 +00:00
objdump-shndx.test Implemented sane default for llvm-objdump's relocation Value format 2018-06-01 05:31:58 +00:00
objdump-symbol-table.test [llvm][test] Update tests using objdump 2018-11-11 18:40:33 +00:00
pr25877.test
readobj-absent.test
readobj-elf-versioning.test
readobj-shared-object.test [llvm-readobj] Display section names for STT_SECTION symbols. 2019-03-01 17:31:32 +00:00
readobj.test
relocation-executable.test
simple-archive.test
size-trivial-macho.test
stackmap-dump.test
wasm-bad-metadata-version.yaml [WebAssembly] Store section alignment as a power of 2 2019-01-16 01:34:48 +00:00
wasm-duplicate-name.test
wasm-invalid-file.yaml Fix use of echo command in test script 2018-05-30 03:26:28 +00:00
wasm-invalid-section-order.test [WebAssembly] Check if the section order is correct 2018-12-15 00:58:12 +00:00
wasm-invalid-start.test
wasm-missing-version.test
wasm-relocs-and-producers.yaml [WebAssembly] Generalize section ordering constraints 2019-02-20 02:22:36 +00:00
wasm-string-outside-section.test [WASM] Fix overflow when reading custom section 2018-08-08 16:34:03 +00:00
yaml2obj-coff-invalid-alignment.test
yaml2obj-coff-multi-doc.test
yaml2obj-elf-alignment.yaml
yaml2obj-elf-bits-endian.test
yaml2obj-elf-file-headers-with-e_flags.yaml
yaml2obj-elf-file-headers.yaml
yaml2obj-elf-multi-doc.test
yaml2obj-elf-rel-noref.yaml
yaml2obj-elf-rel.yaml
yaml2obj-elf-section-basic.yaml
yaml2obj-elf-section-invalid-size.yaml
yaml2obj-elf-symbol-basic.yaml
yaml2obj-elf-symbol-LocalGlobalWeak.yaml
yaml2obj-elf-symbol-visibility.yaml
yaml2obj-invalid.yaml
yaml2obj-readobj.test [llvm-readobj] [COFF] Print the symbol index for relocations 2019-01-03 08:08:23 +00:00