From c769d0f43de79112418762a39e30eae97089b304 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Fri, 25 Feb 2022 16:29:55 +0100 Subject: [PATCH] Fix macOS x64 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. --- src/coreclr/pal/inc/unixasmmacrosamd64.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/pal/inc/unixasmmacrosamd64.inc b/src/coreclr/pal/inc/unixasmmacrosamd64.inc index 9a656ddf1bec29..2aca375faa8383 100644 --- a/src/coreclr/pal/inc/unixasmmacrosamd64.inc +++ b/src/coreclr/pal/inc/unixasmmacrosamd64.inc @@ -27,7 +27,7 @@ .macro PATCH_LABEL Name .global C_FUNC(\Name) -C_FUNC(\Name): + C_FUNC(\Name) = . .endm .macro LEAF_ENTRY Name, Section