summaryrefslogtreecommitdiff
path: root/amark.asm
diff options
context:
space:
mode:
authorJohn van Groningen2013-06-28 15:29:11 +0000
committerJohn van Groningen2013-06-28 15:29:11 +0000
commit5d890f603f944bdc76e12daa6ceab55774bb7dc5 (patch)
treed70b2b7a3c00d3fb1d4a306a1c6bbfbabcbbefd8 /amark.asm
parentremove a ] (diff)
if PIC is defined, make more code position independent
Diffstat (limited to 'amark.asm')
-rw-r--r--amark.asm5
1 files changed, 5 insertions, 0 deletions
diff --git a/amark.asm b/amark.asm
index e6f62dc..db51fd7 100644
--- a/amark.asm
+++ b/amark.asm
@@ -1280,7 +1280,12 @@ __shared_argument_part:
__mark_no_selector_2:
pop rbx
__mark_no_selector_1:
+ ifdef PIC
+ lea r9,bit_set_table2+0
+ mov edx,dword ptr [r9+rdx]
+ else
mov edx,dword ptr (bit_set_table2)[rdx]
+ endif
add r14,3
or dword ptr [rdi+rbx*4],edx
cmp rdx,20000000h