[llvm] [BOLT] Avoid reference updates for non-JT symbol operands (PR #88838)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 07:26:50 PDT 2024


================
@@ -0,0 +1,60 @@
+# If the operand references a symbol that differs from the jump table label,
+# no reference updating is required even if its target address resides within
+# the jump table's range.
+# In this test case, consider the second instruction within the main function,
+# where the address resulting from 'c + 17' corresponds to one byte beyond the
+# address of the .LJTI2_0 jump table label. However, this operand represents
+# an offset calculation related to the global variable 'c' and should remain
+# unaffected by the jump table.
+
+# REQUIRES: system-linux
+
+
+# RUN: %clang -no-pie  %s -o %t.exe -Wl,-q
----------------
aaupov wrote:

On it. 

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


More information about the llvm-commits mailing list