[llvm] [ASan] Emit global metadata in a named section (PR #212890)
Schrodinger ZHU Yifan via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 4 08:25:18 PDT 2026
================
@@ -2781,7 +2811,14 @@ void ModuleAddressSanitizer::instrumentGlobals(IRBuilder<> &IRB,
}
appendToCompilerUsed(M, ArrayRef<GlobalValue *>(GlobalsToAddToUsedList));
- if (UseGlobalsGC && TargetTriple.isOSBinFormatELF()) {
+ std::string ELFUniqueModuleId =
+ (UseGlobalsGC && TargetTriple.isOSBinFormatELF()) ? getUniqueModuleId(&M)
+ : "";
----------------
SchrodingerZhu wrote:
Sorry, it was an artifact of my wrong cherry picks. I am cleaning it up now.
https://github.com/llvm/llvm-project/pull/212890
More information about the llvm-commits
mailing list