[lld] [LLD][ELF][AArch64] Add BTI Aware long branch thunks (PR #108989)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 21 15:15:32 PDT 2024


================
@@ -0,0 +1,513 @@
+// REQUIRES: aarch64
+// RUN: split-file %s %t
+// RUN: llvm-mc -filetype=obj -triple=aarch64 %t/asm -o %t.o
+// RUN: ld.lld --shared --script=%t/lds %t.o -o %t.so --defsym absolute=0xf0000000
+// RUN: llvm-objdump -d --no-show-raw-insn --print-imm-hex --start-address=0x10000000 --stop-address=0x10000028 %t.so | FileCheck --check-prefix=CHECK-SO %s
----------------
MaskRay wrote:

#109553 might be useful to allow removing some llvm-objdump commands, making maintenance more convenient.

`llvm/tools/llvm-objdump/llvm-objdump.cpp:countSkippableZeroBytes` needs to spend time to skip zeroes, so the performance is not as good as multiple llvm-objdump invocations. 

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


More information about the llvm-commits mailing list