[libcxx] [clang-tools-extra] [llvm] [libc] [compiler-rt] [lldb] [lld] [clang] [flang] LLVM_FAULTMAPS section can be put after the DWARF section. (PR #77107)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 29 18:53:17 PST 2024
https://github.com/shamithoke updated https://github.com/llvm/llvm-project/pull/77107
>From a0ccb2cbe3882a6ea8bb020dd54460f57dd84a90 Mon Sep 17 00:00:00 2001
From: shami <shami_thoke at yahoo.com>
Date: Thu, 28 Dec 2023 21:29:36 +0530
Subject: [PATCH] LLVM_FAULTMAPS section can be put after the DWARF section.
---
llvm/lib/MC/MCMachOStreamer.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index d7d343f15eaa6..61ab944ae44fb 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -160,6 +160,10 @@ static bool canGoAfterDWARF(const MCSectionMachO &MSec) {
return true;
if (SegName == "__LLVM" && SecName == "__cg_profile")
return true;
+
+ if (SegName == "__LLVM_FAULTMAPS" && SecName == "__llvm_faultmaps")
+ return true;
+
return false;
}
More information about the cfe-commits
mailing list