[PATCH] D133092: [clang] fix generation of .debug_aranges with LTO
Azat Khuzhin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 14 13:41:29 PDT 2022
azat added a comment.
> This is not correct. GNU ld and gold don't accept -mllvm. You need to use -plugin-opt=-generate...
@MaskRay actually those options will be added only if the name matches `lld`/`lld.exe` (but I guess I need to provide more context so that it will be easier to understand), but you your approach is better anyway, since:
- it does not require additional condition
- it works for `gold` and `bfd` too (so they do interpret `--plugin-opt=-generate-arange-section` option too! I wasn't expecting that)
The new version of the patch will be available here - https://reviews.llvm.org/D133875
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133092/new/
https://reviews.llvm.org/D133092
More information about the cfe-commits
mailing list