16 lines · plain
1extern "C" int __attribute__((naked)) __AArch64ADRPThunk_step_here() {2 asm (3 "adrp x16, step_here\n"4 "add x16, x16, :lo12:step_here\n"5 "br x16"6 );7}8 9extern "C" __attribute__((used)) int step_here() {10 return 47;11}12 13int main() {14 return __AArch64ADRPThunk_step_here();15}16