[libunwind] [libunwind] fix pc range condition check bug (PR #154902)

Wu Yingcong via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 28 22:05:38 PDT 2025


================
@@ -0,0 +1,56 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// Manually marking the .eh_frame_hdr as DW_EH_PE_omit to make libunwind to do
+// the linear search.
+// Assuming the begining of the function is at the start of the FDE range.
+
+// clang-format off
+// REQUIRES: target={{x86_64-.+-linux-gnu}}
+
+// TODO: Figure out why this fails with Memory Sanitizer.
----------------
yingcong-wu wrote:

Confirmed.

https://github.com/llvm/llvm-project/pull/154902


More information about the cfe-commits mailing list