[PATCH] D96914: [ELF] Add -z start-stop-gc to let __start_/__stop_ not retain C identifier name sections
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 9 01:24:58 PST 2021
MaskRay added a comment.
@tstellar I forgot one point the said breakage (for some software not working with GNU ld<2015-10) requires `-fdata-sections -Wl,--gc-sections`, which isn't common among distros.
The symptom is obvious: `error: undefined symbol: __start_XXX`. The fix is straightforward: remove `-Wl,--gc-sections` or use `-z nostart-stop-gc`.
So now I am not even sure it makes sense to revert it for release/13.x.
I try to be impartial and try to think of many factors. That is it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96914/new/
https://reviews.llvm.org/D96914
More information about the llvm-commits
mailing list