[llvm] [BOLT] Support computed goto and allow map addrs inside functions (PR #120267)

Ash Dobrescu via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 06:41:23 PST 2025


================
@@ -0,0 +1,67 @@
+// This test checks that BOLT creates entry points for addresses
+// referenced by dynamic relocations.
+// The test also checks that BOLT can map addresses inside functions.
+
+// Checks for error and entry points.
+# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o
+# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
+# RUN: llvm-bolt %t.exe -o %t.bolt 2>&1 | FileCheck %s
+# RUN: llvm-bolt %t.exe -o %t.bolt --print-cfg | FileCheck --check-prefix=CHECK-ENTRYS %s
----------------
Rin18 wrote:

Fixed.

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


More information about the llvm-commits mailing list