Skip to content

Commit

Permalink
Fix trampoline assembly for build on clang 18 on apple silicon (Julia…
Browse files Browse the repository at this point in the history
…Lang#54634) (#199)

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)
(cherry picked from commit 3f35094)

Co-authored-by: Gabriel Baraldi <[email protected]>
  • Loading branch information
Drvi and gbaraldi authored Nov 19, 2024
1 parent 9162ec8 commit 5610223
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 5610223

Please sign in to comment.