llvm-project/llvm/test/tools/llvm-objdump/X86
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
..
Inputs [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
adjust-vma.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
coff-dis-internal.test
coff-disassemble-export.test
debug-info-fileinfo.test
demangle.s [llvm-objdump] - Do not include reserved undefined symbol in -t output. 2019-01-10 16:24:10 +00:00
disasm-specific-funcs.test Revert "Revert "[llvm-objdump] Allow short options without arguments to be grouped"" 2019-02-19 19:46:08 +00:00
disasm-text.test [llvm-objdump] - llvm-objdump can skip bytes at the end of a section. 2019-02-01 19:11:47 +00:00
disasm-zeroes-relocations.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
disassemble-code-data-mix.s
disassemble-data.test
disassemble-demangle.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
disassembly-show-raw.test
function-sections-line-numbers.s Revert "[llvm] Reapply "Prevent duplicate files in debug line header in dwarf 5."" 2019-03-26 20:05:27 +00:00
hex-displacement.test
invalid-macho-build-version.yaml
lit.local.cfg
macho-archive-headers.test
macho-build-version.yaml
macho-cstring-dump.test
macho-dis-no-leading-addr.test
macho-dis-symname.test
macho-disassemble-all.test llvm-objdump -m -D should disassemble all text segments 2019-01-15 20:41:30 +00:00
macho-disassemble-stab.test objdump fails to parse Mach-O binaries with n_desc bearing stabs 2019-02-23 06:19:56 +00:00
macho-disassembly-g-dsym.test Revert "Revert "[llvm-objdump] Allow short options without arguments to be grouped"" 2019-02-19 19:46:08 +00:00
macho-disassembly-kextbundle.test
macho-disassembly-stripped.test
macho-dylib.test
macho-image-info.test
macho-indirect-symbols.test
macho-info-plist-nofollow.test
macho-info-plist.test
macho-literal-pointers-i386.test
macho-literal-pointers-x86_64.test
macho-literals.test
macho-nofirst-symbol-disassembly.test
macho-nontext-disasm.test
macho-objc-meta-data.test
macho-preload-relocations.test
macho-print-thread.test
macho-private-header.test
macho-private-headers.test objdump: Better handling of Mach-O universal binaries 2018-08-03 00:06:38 +00:00
macho-relocations.test
macho-section-contents.test
macho-section-headers.test [llvm-objdump] - Print LMAs when dumping section headers. 2019-01-28 14:11:35 +00:00
macho-section.test
macho-stub-nosyms-disassembly.test
macho-symbol-table.test [llvm-objdump] Add symbol 'O' for object data 2018-11-11 17:47:13 +00:00
macho-symbolized-disassembly.test
macho-symbolized-subtractor-i386.test
macho-symbolized-subtractor.test
macho-universal-x86_64.i386.test objdump: Better handling of Mach-O universal binaries 2018-08-03 00:06:38 +00:00
macho-unwind-info.test
malformed-machos.test Detect malformed LC_LINKER_COMMANDs in Mach-O binaries 2019-03-11 18:29:25 +00:00
openbsd-headers.test
out-of-section-sym.test Revert "Revert "[llvm-objdump] Allow short options without arguments to be grouped"" 2019-02-19 19:46:08 +00:00
phdrs-lma.test [llvm-objdump] - Print LMAs when dumping section headers. 2019-01-28 14:11:35 +00:00
phdrs-lma2.test [llvm-objdump] - Print LMAs when dumping section headers. 2019-01-28 14:11:35 +00:00
phdrs.test
plt.test [llvm-objdump] Label calls to the PLT. 2018-08-24 15:21:57 +00:00
print-symbol-addr.s [llvm-objdump] - Print symbol addressed when dumping disassembly output (-d) 2019-01-09 14:43:33 +00:00
section-index.s
source-interleave-x86_64.ll Revert "Revert "[llvm-objdump] Allow short options without arguments to be grouped"" 2019-02-19 19:46:08 +00:00
start-stop-address.test
stripped-shared.test
stubbed-dylib.test
truncated-section.test