[lld] Fix lld crash wrt generated thunks growing away from the patched code (PR #170495)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 3 08:56:23 PST 2025
================
@@ -0,0 +1,68 @@
+// REQUIRES: aarch64
+// RUN: llvm-mc -mattr=+bti -filetype=obj -triple=aarch64 %s -o %t.o
+// RUN: echo "SECTIONS { .text 0x10000 : { *(.text.01); . += 0x8000000; *(.text.far); } }" > %t.script
+// RUN: ld.lld -z force-bti --script %t.script -fix-cortex-a53-843419 -verbose %t.o -o %t2 \
----------------
smithp35 wrote:
You shouldn't need force-bti given that you've added the `.note.gnu.property` section
https://github.com/llvm/llvm-project/pull/170495
More information about the llvm-commits
mailing list