[lld] [llvm] [LLD][COFF] Add support for ARM64EC entry thunks. (PR #88132)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 02:48:52 PDT 2024
================
@@ -0,0 +1,345 @@
+// REQUIRES: aarch64
+// RUN: split-file %s %t.dir && cd %t.dir
+
+#--- test-simple.s
+// Build a simple function with an entry thunk.
+
+ .section .text,"xr",discard,func
+ .globl func
+ .p2align 2
+func:
+ mov w0, #1
+ ret
+
+ .section .wowthk$aa,"xr",discard,thunk
+ .globl thunk
+ .p2align 2
+thunk:
+ mov w0, #10
+ ret
+
+ .section .hybmp$x, "yi"
+ .symidx func
+ .symidx thunk
+ .word 1
----------------
mstorsjo wrote:
A comment with what the `.word 1` means (the thunk type) would be good, maybe just `# entry thunk` on the same line.
https://github.com/llvm/llvm-project/pull/88132
More information about the llvm-commits
mailing list