Skip to content

Commit

Permalink
Fix trampoline assembly for build on clang 18 on apple silicon (#54634)
Browse files Browse the repository at this point in the history
This avoids a: `error: non-private labels cannot appear between
.cfi_startproc / .cfi_endproc pairs` error.
That error was introduced in https://reviews.llvm.org/D155245#4657075
see also llvm/llvm-project#72802

(cherry picked from commit a4e793e)
  • Loading branch information
gbaraldi authored and KristofferC committed Jun 13, 2024
1 parent c057940 commit 4d53a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/trampolines/trampolines_aarch64.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

#define XX(name) \
.global CNAME(name) SEP \
CNAME(name)##: SEP \
.cfi_startproc SEP \
.p2align 2 SEP \
CNAME(name)##: SEP \
adrp x16, PAGE(CNAME(name##_addr)) SEP \
ldr x16, [x16, PAGEOFF(CNAME(name##_addr))] SEP \
br x16 SEP \
Expand Down

0 comments on commit 4d53a38

Please sign in to comment.