summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn van Groningen2012-04-20 12:12:02 +0000
committerJohn van Groningen2012-04-20 12:12:02 +0000
commit0ce2027f2fd97ceb101a5afe2bdcf4e731fdede5 (patch)
tree8b7abd04a26e2a9db150cd804a42d10f6e96d117
parentadd make script for 64 bit thread safe linux (diff)
fix memory allocation of arrays of unboxed records of size 4 for 64 bit versions
-rw-r--r--astartup.asm2
-rw-r--r--macho64/astartup.s2
-rw-r--r--thread/astartup.asm2
-rw-r--r--thread_macho64/astartup.s2
4 files changed, 4 insertions, 4 deletions
diff --git a/astartup.asm b/astartup.asm
index 695374a..4690725 100644
--- a/astartup.asm
+++ b/astartup.asm
@@ -4520,7 +4520,7 @@ st_fillr3_array:
ret
create_R_array_4:
- lea rbp,3[rax+4]
+ lea rbp,3[rax*4]
sub r15,rbp
jge no_collect_4584
call collect_0
diff --git a/macho64/astartup.s b/macho64/astartup.s
index 41db2d3..55e5027 100644
--- a/macho64/astartup.s
+++ b/macho64/astartup.s
@@ -4646,7 +4646,7 @@ st_fillr3_array:
ret
create_R_array_4:
- lea rbp,3[rax+4]
+ lea rbp,3[rax*4]
sub r15,rbp
jge no_collect_4584
att_call collect_0
diff --git a/thread/astartup.asm b/thread/astartup.asm
index 6862e97..5fed1d2 100644
--- a/thread/astartup.asm
+++ b/thread/astartup.asm
@@ -5353,7 +5353,7 @@ st_fillr3_array:
ret
create_R_array_4:
- lea rbp,3[rax+4]
+ lea rbp,3[rax*4]
sub r15,rbp
jge no_collect_4584
call collect_0
diff --git a/thread_macho64/astartup.s b/thread_macho64/astartup.s
index ec44dcc..c167a07 100644
--- a/thread_macho64/astartup.s
+++ b/thread_macho64/astartup.s
@@ -4761,7 +4761,7 @@ st_fillr3_array:
ret
create_R_array_4:
- lea rbp,3[rax+4]
+ lea rbp,3[rax*4]
sub r15,rbp
jge no_collect_4584
att_call collect_0