Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

[x86/Linux] Port jithelp.asm #8491

Merged
merged 2 commits into from
Dec 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/pal/inc/unixasmmacrosx86.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions src/vm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ else(WIN32)
elseif(CLR_CMAKE_TARGET_ARCH_I386)
set(VM_SOURCES_WKS_ARCH_ASM
${ARCH_SOURCES_DIR}/asmhelpers.S
${ARCH_SOURCES_DIR}/jithelp.S
${ARCH_SOURCES_DIR}/gmsasm.S
)
elseif(CLR_CMAKE_TARGET_ARCH_ARM)
Expand Down
Loading