llvm-capstone/lld/test
Fangrui Song d24b94f070 [ELF] --wrap: retain __wrap_foo if foo is defined in an object/bitcode file
If foo is referenced in any object file, bitcode file or shared object,
`__wrap_foo` should be retained as the redirection target of sym
(f96ff3c0f8).

If the object file defining foo has foo references, we cannot easily distinguish
the case from cases where foo is not referenced (we haven't scanned
relocations). Retain `__wrap_foo` because we choose to wrap sym references
regardless of whether sym is defined to keep non-LTO/LTO/relocatable links' behaviors similar
https://sourceware.org/bugzilla/show_bug.cgi?id=26358 .

If foo is defined in a shared object, `__wrap_foo` can still be omitted
(`wrap-dynamic-undef.s`).

Reviewed By: andrewng

Differential Revision: https://reviews.llvm.org/D95152
2021-01-22 09:20:29 -08:00
..
COFF [COFF] Fix relocation offsets in pdb-file-statics test input 2021-01-20 11:45:30 -08:00
darwin
ELF [ELF] --wrap: retain __wrap_foo if foo is defined in an object/bitcode file 2021-01-22 09:20:29 -08:00
mach-o Reland "[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types." (https://reviews.llvm.org/D90930). 2020-11-18 13:08:46 +03:00
MachO [lld-macho] Run ObjCContractPass during LTO 2021-01-20 14:21:32 -05:00
MinGW [LLD] [MinGW] Pass the --demangle and --no-demangle options to the COFF linker 2021-01-07 10:02:19 +02:00
Unit
wasm Revert "[WebAssembly] call_indirect issues table number relocs" 2021-01-19 15:06:07 -08:00
CMakeLists.txt lld: Make tests depend on llvm-symbolizer after bc98034040 2020-11-18 11:43:44 -05:00
lit.cfg.py [lld][WebAssembly] Add suppport for PIC + passive data initialization 2020-12-04 17:28:23 -08:00
lit.site.cfg.py.in