From 0030e5f704a5910a4c6a204abc0ed134e8f420e4 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Fri, 28 Jun 2013 14:29:06 +0000 Subject: if PIC is defined, make more code position independent --- astartup.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/astartup.asm b/astartup.asm index c7c0eff..99d1947 100644 --- a/astartup.asm +++ b/astartup.asm @@ -2779,7 +2779,11 @@ end_call_finalizers: copy_to_compact_with_alloc_in_extra_heap: mov rcx,qword ptr heap2_begin_and_end+0 mov rdx,qword ptr (heap2_begin_and_end+8)+0 + ifdef PIC + lea rbx,heap_p2+0 + else mov rbx,offset heap_p2 + endif jmp gc1 allow_prefetch_for_athlon: -- cgit v1.2.3