1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00
llvm-mirror/test/tools
Georgii Rymar 0ba63b8a56 [yaml2obj] - Automatically assign sh_addr for allocatable sections.
I've noticed that it is not convenient to create YAMLs from
binaries (using obj2yaml) that have to be test cases for obj2yaml
later (after applying yaml2obj).

The problem, for example is that obj2yaml emits "DynamicSymbols:"
key instead of .dynsym. It also does not create .dynstr.
And when a YAML document without explicitly defined .dynsym/.dynstr
is given to yaml2obj, we have issues:

1) These sections are placed after non-allocatable sections (I've fixed it in D74756).
2) They have VA == 0. User needs create descriptions for such sections explicitly manually
    to set a VA.

This patch addresses (2). I suggest to let yaml2obj assign virtual addresses by itself.
It makes an output binary to be much closer to "normal" ELF.
(It is still possible to use "Address: 0x0" for a section to get the original behavior
if it is needed)

Differential revision: https://reviews.llvm.org/D74764
2020-02-22 14:43:54 +03:00
..
dsymutil [dsymutil] Fix double relocation of DW_AT_call_return_pc 2020-02-13 17:42:48 -08:00
gold Restore "[LTO/WPD] Enable aggressive WPD under LTO option" 2020-01-27 07:55:05 -08:00
llc Address redirect issue on Windows. 2020-01-16 15:07:50 -05:00
llvm-ar Make quick-append.test resilient to running in paths with '1.o' in the name 2020-02-03 11:35:24 +01:00
llvm-as
llvm-cfi-verify
llvm-config
llvm-cov [llvm-cov] Add support for -skip-functions to lcov 2020-01-22 12:49:00 -08:00
llvm-cvtres
llvm-cxxdump
llvm-cxxfilt
llvm-cxxmap
llvm-diff
llvm-dlltool
llvm-dwarfdump Revert "Reland "[DebugInfo] Enable the debug entry values feature by default"" 2020-02-20 14:41:39 +01:00
llvm-dwp [DebugInfo] Pass linux triple to tests requiring ELF. 2020-02-19 10:41:40 +01:00
llvm-elfabi [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
llvm-exegesis [llvm-exegesis] Exploring X86::OperandType::OPERAND_COND_CODE 2020-02-12 21:33:52 +03:00
llvm-extract [llvm-extract] Add -keep-const-init commandline option 2020-02-03 14:30:28 +09:00
llvm-ifs
llvm-isel-fuzzer
llvm-lib
llvm-lipo [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
llvm-lit
llvm-locstats Revert "Reland "[DebugInfo] Enable the debug entry values feature by default"" 2020-02-20 14:41:39 +01:00
llvm-lto
llvm-lto2 Revert "Revert "Reland "[Support] make report_fatal_error abort instead of exit""" 2020-02-13 10:16:06 -08:00
llvm-mc
llvm-mca [X86] Increase latency of port5 masked compares and kshift/kadd/kunpck instructions in SKX scheduler model 2020-02-16 16:59:37 -08:00
llvm-ml [ms] [llvm-ml] Add a draft MASM parser 2020-02-16 12:30:46 -05:00
llvm-modextract
llvm-mt
llvm-nm [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
llvm-objcopy [yaml2obj] - Automatically assign sh_addr for allocatable sections. 2020-02-22 14:43:54 +03:00
llvm-objdump [llvm-objdump][test] Fix source-interleave-function-from-debug.test on Windows after D74507 2020-02-21 16:47:54 -08:00
llvm-opt-fuzzer
llvm-opt-report
llvm-pdbutil
llvm-profdata [llvm-profdata] Fix hint message since argument format has changed 2020-01-20 20:57:03 +08:00
llvm-ranlib [llvm-ranlib][test] Fix rwx- after a4f3847f3d5742cfab7acdc614e7ca54643e0c85 2020-02-14 19:41:55 -08:00
llvm-rc
llvm-readobj [yaml2obj] - Automatically assign sh_addr for allocatable sections. 2020-02-22 14:43:54 +03:00
llvm-size [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
llvm-split
llvm-strings
llvm-symbolizer Print discriminators when printing .debug_line in GNU style. 2020-01-29 12:22:12 -08:00
llvm-xray [xray] add --no-demangle cli opt for llvm-xray extract to output mangled names 2020-01-16 16:37:00 -08:00
lto
obj2yaml [yaml2obj] - Automatically assign sh_addr for allocatable sections. 2020-02-22 14:43:54 +03:00
opt-viewer
sancov
sanstats [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
UpdateTestChecks Move update_cc_test_checks.py tests to clang 2020-02-14 14:39:55 +00:00
yaml2obj [yaml2obj] - Automatically assign sh_addr for allocatable sections. 2020-02-22 14:43:54 +03:00