1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-10 19:26:38 +03:00
mold/test
Rui Ueyama 04ccd4dbdd [ELF] Export undef symbols if both -z defs and -warn-undefined-symbols are given
When we are creating a DSO, unresolved undefined symbols are promoted to
dynamic symbols by default so that they will get another chance to be
resolved at runtime.

You can suppress this behavior by passing `-z defs`. If that option is
given, remaining undefs are reported as errors instead of being silently
promoted.

It looks like `-warn-undefined-symbols` negates the effect of `-z defs`.
So, if both options are given, remaining undefs are promoted to dynamic
symbols. mold previously silently make such symbols absolute symbols with
value 0.

Fixed https://github.com/rui314/mold/issues/152
2021-12-24 21:13:15 +09:00
..
elf [ELF] Export undef symbols if both -z defs and -warn-undefined-symbols are given 2021-12-24 21:13:15 +09:00
macho Fix tests in non-English environment 2021-12-17 20:06:50 +09:00
gentoo-test.sh [Mach-O] Add a test for mach-o stub 2021-09-08 19:19:07 +09:00
Makefile.darwin [Mach-O] Make make test to work on macOS 2021-09-28 18:47:24 +09:00
Makefile.linux [Mach-O] Make make test to work on macOS 2021-09-28 18:47:24 +09:00