[clang] [clang] Implement address sanitizer on AIX (PR #129925)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 12 20:58:05 PDT 2025
================
@@ -1635,8 +1656,13 @@ bool tools::addSanitizerRuntimes(const ToolChain &TC, const ArgList &Args,
}
// If there is a static runtime with no dynamic list, force all the symbols
// to be dynamic to be sure we export sanitizer interface functions.
- if (AddExportDynamic)
- CmdArgs.push_back("--export-dynamic");
+ if (AddExportDynamic) {
+ if (!TC.getTriple().isOSAIX())
+ CmdArgs.push_back("--export-dynamic");
+ else
+ llvm::report_fatal_error("Sanitizer interface functions must be exported "
----------------
MaskRay wrote:
clang/lib/Driver has proper error reporting mechanism (D.Diag). Should not use `llvm::report_fatal_error`. I have noticed that only IBM OS code (z/OS, AIX) uses `llvm::report_fatal_error`, which should hopefully be fixed.
https://github.com/llvm/llvm-project/pull/129925
More information about the cfe-commits
mailing list