llvm-project/llvm/test/tools/llvm-objdump
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
..
AArch64 Revert "Revert "[llvm-objdump] Allow short options without arguments to be grouped"" 2019-02-19 19:46:08 +00:00
AMDGPU AMDGPU: Remove remnants of old address space mapping 2018-08-31 05:49:54 +00:00
ARM [llvm-objdump] Support arg grouping for -j and -M (e.g. llvm-objdump -sj.foo -dMreg-names-raw) 2019-03-21 18:45:44 +00:00
Hexagon Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
Inputs Revert "[llvm] Reapply "Prevent duplicate files in debug line header in dwarf 5."" 2019-03-26 20:05:27 +00:00
Mips
PowerPC [PowerPC] Fix printing of negative offsets in call instruction dissasembly. 2019-02-12 17:48:22 +00:00
WebAssembly [WebAssembly] Remove uses of ThreadModel 2019-02-28 18:39:08 +00:00
X86 [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
all-headers.test [llvm-objdump] - Dump the archive headers when -all-headers is specified. 2019-01-18 12:01:59 +00:00
archive-headers.test [llvm-objcopy] Fix timezone dependant tests 2018-07-05 15:24:11 +00:00
call-absolute-symbol-elf.test Require x86 for this test. 2018-06-28 23:22:14 +00:00
coff-file.test
coff-import-library.test
coff-large-bss.test
coff-many-relocs.test
coff-non-null-terminated-file.test
coff-private-headers.test
common-symbol-elf.test [llvm-objdump] Add symbol 'O' for object data 2018-11-11 17:47:13 +00:00
eh_frame-arm64.test
eh_frame-coff.test [DebugInfo] Fix the type of the formated variable 2019-03-07 16:31:08 +00:00
eh_frame-mipsel.test
eh_frame_zero_cie.test
elf-dynamic-section-machine-specific.test [ELF] Fix GCC8 warnings about "fall through", NFCI 2019-03-13 10:38:17 +00:00
elf-dynamic-section.test [llvm-objdump] Should print unknown d_tag in hex format 2019-03-02 04:20:28 +00:00
embedded-source.test Add reproduction instructions to llvm-objdump's embedded source test. 2019-03-28 01:56:16 +00:00
file-headers-coff.test [llvm-objdump] Fix --file-headers (-f) option 2018-10-19 22:16:49 +00:00
file-headers-elf.test [llvm-objdump] Fix --file-headers (-f) option 2018-10-19 22:16:49 +00:00
file-headers-pe.test [llvm-objdump] Fix --file-headers (-f) option 2018-10-19 22:16:49 +00:00
file-headers-unsupported.test [llvm-objdump] Add --file-headers (-f) option 2018-07-04 15:25:03 +00:00
full-contents.test [commit test] Add blank line to test/tools/llvm-objdump/full-contents.test 2018-11-13 02:14:38 +00:00
hex-relocation-addr.test
invalid-input.test [llvm-objdump][MachO] Disable some invalid input tests 2019-01-10 23:46:31 +00:00
macho-LLVM-bundle.test
macho-bad-bind.test Fix Mach-O bind and rebase validation errors in libObject 2019-03-20 23:21:16 +00:00
macho-bad-dysymtab.test [MachO] Fix inconsistency between error messages when validating LC_DYSYMTAB 2018-09-04 16:31:53 +00:00
macho-bad-ordinal.test
macho-bad-trie.test
macho-bind.test
macho-bind2.test
macho-compact-unwind-i386.test
macho-compact-unwind-x86_64.test
macho-exports-trie.test
macho-lazy-bind.test
macho-objc-meta-data.test
macho-rebase.test
macho-sections.test
macho-unwind-info-arm64.test
macho-unwind-info-no-relocs.test
macho-unwind-info-x86_64.test
macho-weak-bind.test
malformed-archives.test
malformed-macho.test
malformed-unwind-x86_64.test
non-archive-object.test [llvm-objdump] Don't crash when using `-a` on non-archives 2018-10-29 14:17:08 +00:00
option-grouping.test Revert "Revert "[llvm-objdump] Allow short options without arguments to be grouped"" 2019-02-19 19:46:08 +00:00
private-headers-dynamic-section.test [llvm-objdump] Add dynamic section printing to private-headers option 2018-07-25 11:09:20 +00:00
private-headers-no-dynamic-segment.test [yaml2obj][obj2yaml] - Add support for dumping/parsing .dynamic sections. 2019-02-09 11:34:28 +00:00
private-headers-no-dynamic.test [llvm-objdump] Add dynamic section printing to private-headers option 2018-07-25 11:09:20 +00:00
proc-specific-section-elf.test
relocations-elf.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
section-filter.test [llvm-objdump] Support arg grouping for -j and -M (e.g. llvm-objdump -sj.foo -dMreg-names-raw) 2019-03-21 18:45:44 +00:00
symbol-table-elf.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
verdef-elf.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
verneed-elf.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
verneed-wrong-info.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
wasm-corrupt-section.test
wasm.txt [llvm-objdump] - Print LMAs when dumping section headers. 2019-01-28 14:11:35 +00:00
win64-unwind-data.test