summaryrefslogtreecommitdiff
path: root/libgo/runtime/runtime_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/runtime_c.c')
-rw-r--r--libgo/runtime/runtime_c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgo/runtime/runtime_c.c b/libgo/runtime/runtime_c.c
index 336b2611324..6da35210440 100644
--- a/libgo/runtime/runtime_c.c
+++ b/libgo/runtime/runtime_c.c
@@ -139,6 +139,10 @@ uintptr getEnd(void)
uintptr
getEnd()
{
+#ifdef _AIX
+ // mmap adresses range start at 0x30000000 on AIX for 32 bits processes
+ uintptr end = 0x30000000U;
+#else
uintptr end = 0;
uintptr *pend;
@@ -146,6 +150,8 @@ getEnd()
if (pend != nil) {
end = *pend;
}
+#endif
+
return end;
}