llvm-project/lld/test
Fangrui Song 2fc704a0a5 [ELF] --emit-relocs: fix st_value of STT_SECTION in the presence of a gap before the first input section
In the presence of a gap, the st_value field of a STT_SECTION symbol is the
address of the first input section (incorrect if there is a gap). Set it to the
output section address instead.

In -r mode, this bug can cause an incorrect non-zero st_value of a STT_SECTION
symbol (while output sections have zero addresses, input sections may have
non-zero outSecOff).  The non-zero st_value can cause the final link to have
incorrect relocation computation (both GNU ld and LLD add st_value of the
STT_SECTION symbol to the output section address).

Reviewed By: grimar

Differential Revision: https://reviews.llvm.org/D90520
2020-11-02 08:37:15 -08:00
..
COFF Reapply [LLD] [COFF] Implement a GNU/ELF like -wrap option 2020-10-15 22:14:02 +03:00
ELF [ELF] --emit-relocs: fix st_value of STT_SECTION in the presence of a gap before the first input section 2020-11-02 08:37:15 -08:00
MachO [lld-macho] Ignore a few more undocumented flags 2020-09-25 11:28:37 -07:00
MinGW Reapply [LLD] [COFF] Implement a GNU/ELF like -wrap option 2020-10-15 22:14:02 +03:00
Unit Revert "Temporarily revert "build: use `find_package(Python3)` if available"" 2020-04-29 01:38:08 +00:00
darwin
mach-o [lld] Test corrections after 3f1a9b7eca added segment names to objdump output 2020-09-04 10:26:29 -07:00
wasm [lld][WebAssembly] Remove bad-reloc test 2020-10-31 16:42:55 -07:00
CMakeLists.txt [LLD] Ignore ELF tests when ld.lld defaults to MinGW 2020-10-08 09:34:46 +03:00
lit.cfg.py [LLD] Ignore ELF tests when ld.lld defaults to MinGW 2020-10-08 09:34:46 +03:00
lit.site.cfg.py.in [LLD] Ignore ELF tests when ld.lld defaults to MinGW 2020-10-08 09:34:46 +03:00