[PATCH] D91605: [sanitizers] Implement GetTls on Solaris
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 18 17:51:15 PST 2020
MaskRay added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Solaris.cpp:150
+ const SanitizerArgs &SA = getToolChain().getSanitizerArgs();
+ if (LINKER_SUPPORTS_Z_RELAX_TRANSTLS &&
+ getToolChain().getTriple().getArch() == llvm::Triple::x86_64 &&
----------------
Can the configure-time variable `LINKER_SUPPORTS_Z_RELAX_TRANSTLS` be replaced by a version check on the triple suffix?
You can see some tests where `x86_64-unknown-freebsd11` or `x86_64-unknown-freebsd12` is used. The idea is that the driver continuously bumps the default version.
================
Comment at: clang/tools/driver/CMakeLists.txt:123
+
+check_linker_flag("-Wl,-z,relax=transtls" LINKER_SUPPORTS_Z_RELAX_TRANSTLS)
----------------
GNU ld reports a warning instead of an error when an unknown `-z` is seen. The warning remains a warning even with `--fatal-warnings`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91605/new/
https://reviews.llvm.org/D91605
More information about the llvm-commits
mailing list