From e3d8b345141ae2d9cc7d590cdad4d53f2e3b3c4e Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Thu, 18 Jul 2013 12:02:11 +0000 Subject: store offset to e__system__dind instead of address if code is position independent --- astartup.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/astartup.asm b/astartup.asm index 69ce5cc..292b8c1 100644 --- a/astartup.asm +++ b/astartup.asm @@ -3345,7 +3345,11 @@ eval_fill: lea rax,e__system__eaind+0 jmp rax db 0,0,0 + ifdef PIC + dd e__system__dind-. + else dd e__system__dind + endif dd -2 e__system__nind: __indirection: -- cgit v1.2.3