llvm-project/lld/test
Fangrui Song db1988f038 [ELF] Don't change binding to STB_WEAK for an undefined specified by -u
Similar to D66992.
In GNU ld, a -u specified symbol is a STB_DEFAULT undefined.
It cannot be changed to STB_WEAK by a later STB_WEAK undefined in a regular object file.

The behavior is consistent with our model because -u means "we need to fetch a lazy definition".
It should not be altered just because there is also a STB_WEAK undefined.

Note, our -u semantics are still different from GNU ld (https://github.com/ClangBuiltLinux/linux/issues/515):
we don't force the specified symbol to appear in .symtab This is a deliberate decision.

Reviewed By: grimar

Differential Revision: https://reviews.llvm.org/D88945
2020-10-08 08:31:34 -07:00
..
COFF [LLD] [COFF] Add a private option for setting the os version separately from subsystem version 2020-10-05 23:08:01 +03:00
ELF [ELF] Don't change binding to STB_WEAK for an undefined specified by -u 2020-10-08 08:31:34 -07:00
MachO [lld-macho] Ignore a few more undocumented flags 2020-09-25 11:28:37 -07:00
MinGW [LLD] [MinGW] Support setting the subsystem version via the subsystem argument 2020-10-05 23:08:08 +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 [WebAssembly] New-style command support 2020-09-30 19:02:40 -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