Skip to content

Commit

Permalink
Fix macOS x64
Browse files Browse the repository at this point in the history
The assembler was generating 32 bit conditional relative jumps instead
of ones with 8 bit displacement. I've found that a presence of a global
label between the jump site and the destination makes the assembler to
do that. Changing PATCH_LABEL macro fixed it.
  • Loading branch information
janvorli committed Feb 25, 2022
1 parent ad97eed commit c769d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/pal/inc/unixasmmacrosamd64.inc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

.macro PATCH_LABEL Name
.global C_FUNC(\Name)
C_FUNC(\Name):
C_FUNC(\Name) = .
.endm

.macro LEAF_ENTRY Name, Section
Expand Down

0 comments on commit c769d0f

Please sign in to comment.