[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
----------------
smithp35 wrote:

For new tests lld is using split-file (see aarch64-thunk-bti-execute-only.s) which makes it much easier to see the linker script.

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


More information about the llvm-commits mailing list