mirror of
https://github.com/rui314/mold.git
synced 2024-10-04 08:37:28 +03:00
b23c47ae6d
If a section name is valid as a C identifier (i.e. it doesn't start with '.' and doesn't contain any punctuators), the linker automatically creates new symbols by prepending `__start_` and `__stop_` to the section name. Previously, we conservatively keep such C identifier sections during garbage collection. However, since `__start_` and `__stop_` symbols are hidden symbols, if we do not have `__start_foo` or `__stop_foo`, we can safely discard section `foo`. |
||
---|---|---|
.. | ||
elf | ||
macho | ||
gentoo-test.sh |