[lld] [LLD][ELF][AArch64] Add support for SHF_AARCH64_PURECODE ELF section flag (3/3) (PR #125689)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 18 21:20:50 PST 2025
=?utf-8?q?Csan=C3=A1d_Hajd=C3=BA?= <csanad.hajdu at arm.com>,
=?utf-8?q?Csan=C3=A1d_Hajd=C3=BA?= <csanad.hajdu at arm.com>,
=?utf-8?q?Csan=C3=A1d_Hajd=C3=BA?= <csanad.hajdu at arm.com>,
=?utf-8?q?Csan=C3=A1d_Hajd=C3=BA?= <csanad.hajdu at arm.com>,
=?utf-8?q?Csan=C3=A1d_Hajd=C3=BA?= <csanad.hajdu at arm.com>,
=?utf-8?q?Csan=C3=A1d_Hajd=C3=BA?= <csanad.hajdu at arm.com>,
=?utf-8?q?Csan=C3=A1d_Hajd=C3=BA?= <csanad.hajdu at arm.com>,
=?utf-8?q?Csan=C3=A1d_Hajd=C3=BA?= <csanad.hajdu at arm.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/125689 at github.com>
================
@@ -0,0 +1,21 @@
+// REQUIRES: aarch64
+// RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o
+// RUN: ld.lld %t.o --defsym big=0x1111222233334444 -o %t
+// RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
+
+.section .text,"axy", at progbits,unique,0
+.globl _start
+_start:
+ bl big
+
+// CHECK: Disassembly of section .text:
+// CHECK-EMPTY:
+// CHECK-LABEL: <_start>:
+// CHECK-NEXT: 210120: bl 0x210124
+// CHECK-LABEL: <__AArch64AbsXOLongThunk_big>:
+// CHECK-NEXT: 210124: mov x16, #0x4444
----------------
MaskRay wrote:
drop address
https://github.com/llvm/llvm-project/pull/125689
More information about the llvm-commits
mailing list