[llvm] [BOLT] Support map other function entry address (PR #101466)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 06:01:15 PDT 2024


================
@@ -0,0 +1,25 @@
+// This test examines whether BOLT can correctly update when
+// dynamic relocation points to other entry points of the
+// function.
+
+# RUN: %clang %cflags -fPIC -pie %s -o %t.exe -nostdlib -Wl,-q
+# RUN: llvm-bolt %t.exe -o %t.bolt | FileCheck %s
+
+    .text
+    .type   chain, @function
+chain:
+    movq    $1, %rax
+Lable:
+    ret
+    .size   chain, .-chain
----------------
linsinan1995 wrote:

updated, Thanks!

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


More information about the llvm-commits mailing list