llvm-project/llvm/test/tools/llvm-readobj/Inputs
George Rimar 6da44ad75d [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping.
Currently, YAML has the following syntax for describing the symbols:

Symbols:
  Local:
    LocalSymbol1:
    ...
    LocalSymbol2:
    ...
  ...
  Global:
    GlobalSymbol1:
  ...
  Weak:
  ...
  GNUUnique:

I.e. symbols are grouped by their bindings. That is not very convenient,
because:

It does not allow to set a custom binding, what can be useful for producing
broken/special outputs for test cases. Adding a new binding would require to
change a syntax (what we observed when added GNUUnique recently).

It does not allow to change the order of the symbols in .symtab/.dynsym,
i.e. currently all Local symbols are placed first, then Global, Weak and GNUUnique
are following, but we are not able to change the order.

It is not consistent. Binding is just one of the properties of the symbol,
we do not group them by other properties.

It makes the code more complex that it can be. This patch shows it can be simplified
with the change performed.

The patch changes the syntax to just:

Symbols:
  Symbol1:
  ...
  Symbol2:
  ...
...

With that, we are able to work with the binding field just like with any other symbol property.

Differential revision: https://reviews.llvm.org/D60122

llvm-svn: 357595
2019-04-03 14:53:42 +00:00
..
resources Quick fix to D32609, it seems .o files are not transferred in all cases. 2017-05-08 02:47:25 +00:00
abiflags.obj.elf-mips
abiflags.obj.elf-mipsel
arm64-win1.obj [ARM64][Windows] Add unwind support to llvm-readobj 2018-10-24 00:03:34 +00:00
arm64-win2.obj [ARM64][Windows] Add unwind support to llvm-readobj 2018-10-24 00:03:34 +00:00
bad-relocs.obj.coff-i386
basereloc.obj.coff-i386
bigobj.coff-x86-64
codeview-cycle.obj [codeview] Cope with unsorted streams in type merging 2017-04-03 23:58:15 +00:00
codeview-inlinees.obj [codeview] Add support for inlinee lists 2017-10-23 23:43:40 +00:00
codeview-inlining.obj.coff
codeview-label.obj [codeview] Add support for label type records 2017-04-03 21:25:20 +00:00
codeview-merging-1.obj
codeview-merging-2.obj
codeview-merging-anon.obj [codeview] Fix buggy BeginIndexMapSize assertion 2017-03-29 22:51:22 +00:00
codeview-types.obj
codeview-unsorted.obj [codeview] Cope with unsorted streams in type merging 2017-04-03 23:58:15 +00:00
codeview-vftable.obj.coff
coff-load-config-data-end.exe [llvm-readobj] Fix COFF RVA table dumping bug 2017-06-23 22:12:11 +00:00
coff-load-config-x64.dll [llvm-readobj] Dump the COFF image load config 2017-06-22 01:10:29 +00:00
coff-load-config-x86.dll [llvm-readobj] Dump the COFF image load config 2017-06-22 01:10:29 +00:00
coff-no-load-config.exe [Object] Initialize LoadConfig member to null 2017-08-07 21:23:38 +00:00
comdat-function-linetables.obj.coff-2012-i386
comdat-function-linetables.obj.coff-2013-i386
compression.zlib.style.elf-x86-64
const-import.lib COFF Import: expose both symbols 2017-04-28 04:29:43 +00:00
cxx-cli-aux.cpp
cxx-cli-aux.obj.coff-i386
directives.obj.coff-x86_64
dtflags.elf-x86-64
dwarf-exprs.exe-x86-64.yaml [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
dynamic-table-exe.mips
dynamic-table-exe.x86
dynamic-table-so.aarch64
dynamic-table-so.mips
dynamic-table-so.x86 [llvm-readobj] - Teach readobj to print DT_FILTER dynamic tag in human readable form. 2017-07-14 16:00:16 +00:00
dynamic-table.c [llvm-readobj] - Teach readobj to print DT_FILTER dynamic tag in human readable form. 2017-07-14 16:00:16 +00:00
elf-dynamic-tags-machine-specific.yaml [ELF] Fix GCC8 warnings about "fall through", NFCI 2019-03-13 10:38:17 +00:00
elf-groups.x86_64
elf-packed-relocs1.s llvm-readobj: Add support for reading relocations in the Android packed format. 2017-10-25 03:37:12 +00:00
elf-packed-relocs2.s llvm-readobj: Add support for reading relocations in the Android packed format. 2017-10-25 03:37:12 +00:00
elf-packed-relocs3.s Add missing test file from r339799. 2018-08-16 19:29:01 +00:00
elf-relr-relocs1.s [llvm-readobj] Add experimental support for SHT_RELR sections 2018-06-28 21:07:34 +00:00
elf-relr-relocs2.s [llvm-readobj] Add experimental support for SHT_RELR sections 2018-06-28 21:07:34 +00:00
export-arm.dll
export-x64.dll
export-x86.dll
file-aux-record.yaml
file-multiple-aux-records.yaml
gnuhash.so.elf-i386
gnuhash.so.elf-ppc
gnuhash.so.elf-ppc64
gnuhash.so.elf-x86_64
got-empty.exe.mipsel
got-over.exe.elf-mips
got-plt.exe.elf-mipsel
got-static.exe.mips [llvm-readobj] Print static MIPS GOT 2017-12-02 13:06:35 +00:00
got-tls.so.elf-mips64el
has_pdb.exe
imports.exe.coff-i386
imports.exe.coff-x86-64
library.lib COFF: Fix short import lib import name type bitshift 2016-10-01 23:10:20 +00:00
macho-universal-archive.x86_64.i386
macho-universal.x86_64.i386
magic.coff-importlib
magic.coff-unknown
many-sections-stripped.elf-x86_64 [llvm-readobj] - Teach tool to dump objects with >= SHN_LORESERVE of sections. 2018-07-18 08:19:58 +00:00
many-sections.elf-x86_64 [llvm-readobj] - Teach tool to dump objects with >= SHN_LORESERVE of sections. 2018-07-18 08:19:58 +00:00
mips-options.elf-mips64el
mips-rld-map-rel.elf-mipsel
multifile-linetables.obj.coff-2012-i368
multifile-linetables.obj.coff-2012-x86_64
multifile-linetables.obj.coff-2013-i368
multifile-linetables.obj.coff-2013-x86_64
multifunction-linetables.obj.coff-2012-i368
multifunction-linetables.obj.coff-2012-x86_64
multifunction-linetables.obj.coff-2013-i368
multifunction-linetables.obj.coff-2013-x86_64
needed-libs.obj.coff-am64 [llvm-readobj] Support -needed-libs option for COFF files 2017-12-27 19:59:56 +00:00
nop.exe.coff-x86-64
options.obj.elf-mipsel
phdrs-elf.exe-i386
phdrs-elf.exe-x86_64
ppc64.exe Add PPC64_GLINK dynamic tag. 2018-04-13 16:42:48 +00:00
reginfo.obj.elf-mipsel
relocs-no-symtab.obj.coff-i386
relocs.obj.coff-i386
relocs.obj.coff-x86_64
relocs.obj.elf-aarch64
relocs.obj.elf-aarch64-ilp32 AArch64 ILP32 relocations for assembly and ELF 2016-10-24 13:37:13 +00:00
relocs.obj.elf-arm
relocs.obj.elf-i386
relocs.obj.elf-lanai
relocs.obj.elf-mips
relocs.obj.elf-mips64el
relocs.obj.elf-ppc64
relocs.obj.elf-x86_64
relocs.obj.macho-arm
relocs.obj.macho-i386
relocs.obj.macho-x86_64
relocs.py Python compat - iteritems() vs. items() 2019-01-03 14:12:23 +00:00
rpath.exe.elf-x86_64
st-other.obj.elf-mips
st-other.obj.elf-mips16
symbols-proc-specific.elf-hexagon
trivial.exe.coff-arm
trivial.exe.coff-i386
trivial.ll [WebAsembly] Update default triple in test files to wasm32-unknown-unkown. 2018-05-10 17:49:11 +00:00
trivial.obj.coff-arm
trivial.obj.coff-arm64 [llvm-readobj] Improve printouts for COFF ARM64 binaries 2017-06-30 07:02:13 +00:00
trivial.obj.coff-i386
trivial.obj.coff-x86-64
trivial.obj.elf-amdhsa-gfx803 AMDGPU: Remove deprecated and unused elf definitions 2017-06-05 21:33:40 +00:00
trivial.obj.elf-i386
trivial.obj.elf-lanai
trivial.obj.elf-mipsel
trivial.obj.elf-x86-64
trivial.obj.macho-arm
trivial.obj.macho-i386
trivial.obj.macho-ppc
trivial.obj.macho-ppc64
trivial.obj.macho-x86-64
trivial.obj.wasm [WebAssembly] Store section alignment as a power of 2 2019-01-16 01:34:48 +00:00
verdef.elf-x86-64
verneed.elf-x86-64
zero-string-table.obj.coff-i386