diff options
author | John van Groningen | 2013-07-30 13:22:31 +0000 |
---|---|---|
committer | John van Groningen | 2013-07-30 13:22:31 +0000 |
commit | bfb06a0d501804e35037cfb7c802c3879e1336e1 (patch) | |
tree | 75588ff4f943af29c8a0ec1658b989b9316762ba | |
parent | if PIC is defined, adjust to modified descriptors for position independent code (diff) |
if PIC is defined, adjust to modified descriptors for position independent code
-rw-r--r-- | astartup.asm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/astartup.asm b/astartup.asm index 292b8c1..d6545b8 100644 --- a/astartup.asm +++ b/astartup.asm @@ -1359,7 +1359,12 @@ printD: test al,2 DtoAC_record: ifdef NEW_DESCRIPTORS + ifdef PIC + movsxd rbx,dword ptr (-6)[rax] + lea rbp,(-6)[rax+rbx] + else movsxd rbp,dword ptr (-6)[rax] + endif else movsx rbp,dword ptr (-4)[rbp] endif @@ -1451,6 +1456,9 @@ printD_: print_record: movsxd rbp,dword ptr (-6)[rax] + ifdef PIC + lea rbp,-6[rax+rbp] + endif jmp print_string_a2 else lea rbp,(-2)[rax] |