1// A function that returns its own address. Handy for testing whether JIT'd code
2// and JIT symbol tables agree on addresses.
3
4 .section __TEXT,__text,regular,pure_instructions
5 .build_version macos, 14, 0
6 .globl _ret_self
7 .p2align 4, 0x90
8_ret_self:
9 leaq _ret_self(%rip), %rax
10 retq
11
12.subsections_via_symbols
13

source code of compiler-rt/test/orc/TestCases/Darwin/x86-64/Inputs/ret_self.S