summaryrefslogtreecommitdiff
path: root/src/pal/inc
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2016-12-14 08:36:06 +0900
committerJan Vorlicek <janvorli@microsoft.com>2016-12-14 00:36:06 +0100
commite8e2adfb61834873477e0f154eab90252d6a6047 (patch)
tree7ac49b79e39419d6472bafd6193e45698e2f2979 /src/pal/inc
parent4f1a90f2f4a2bd0656f22cb76c56e7a7fb631d73 (diff)
downloadcoreclr-e8e2adfb61834873477e0f154eab90252d6a6047.tar.gz
coreclr-e8e2adfb61834873477e0f154eab90252d6a6047.tar.bz2
coreclr-e8e2adfb61834873477e0f154eab90252d6a6047.zip
[x86/Linux] Port jithelp.asm (#8491)
* [x86/Linux] Port jithelp.asm This commit ports jithelp.asm for x86/Linux The following Tailcall helpers are marked as NYI: - JIT_TailCall - JIT_TailCallReturnFromVSD - JIT_TailCallVSDLeave - JIT_TailCallLeave * Revise macro and indentation
Diffstat (limited to 'src/pal/inc')
-rw-r--r--src/pal/inc/unixasmmacrosx86.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pal/inc/unixasmmacrosx86.inc b/src/pal/inc/unixasmmacrosx86.inc
index d7d530434a..6e7254e1b1 100644
--- a/src/pal/inc/unixasmmacrosx86.inc
+++ b/src/pal/inc/unixasmmacrosx86.inc
@@ -65,3 +65,14 @@ C_FUNC(\Name\()_End):
.macro EPILOG_END
pop ebp
.endm
+
+.macro PREPARE_EXTERNAL_VAR Name, Reg
+.att_syntax
+ call 0f
+0:
+ popl %\Reg
+1:
+ addl $_GLOBAL_OFFSET_TABLE_ + (1b - 0b), %\Reg
+ movl C_FUNC(\Name)@GOT(%\Reg), %\Reg
+.intel_syntax noprefix
+.endm