[PATCH 2/5] bsps/x86_64: Reduce default RamSize to 1GiB
Amaan Cheval
amaan.cheval at gmail.com
Mon Aug 13 11:27:21 UTC 2018
Simulators may not always be able to allocate 4GiB easily, and using an
artificially lower RAM may cause a broken heap.
Updates #2898.
---
bsps/x86_64/amd64/start/linkcmds | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bsps/x86_64/amd64/start/linkcmds b/bsps/x86_64/amd64/start/linkcmds
index 46b1ccbfe7..ecb4a2b835 100644
--- a/bsps/x86_64/amd64/start/linkcmds
+++ b/bsps/x86_64/amd64/start/linkcmds
@@ -23,15 +23,15 @@ HeapSize = DEFINED(HeapSize) ? HeapSize :
RamBase = DEFINED(RamBase) ? RamBase :
DEFINED(_RamBase) ? _RamBase : 0x0;
-/* XXX: Defaulting to 4GiB.
+/* XXX: Defaulting to 1GiB.
*/
RamSize = DEFINED(RamSize) ? RamSize :
- DEFINED(_RamSize) ? _RamSize : 0xFFFFFFFF;
+ DEFINED(_RamSize) ? _RamSize : 0x40000000;
SECTIONS
{
/* Read-only sections, merged into text segment: */
- PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x400000)); . = SEGMENT_START("text-segment", 0x400000) + SIZEOF_HEADERS;
+ PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x00100000)); . = SEGMENT_START("text-segment", 0x00100000) + SIZEOF_HEADERS;
.interp : { *(.interp) }
.note.gnu.build-id : { *(.note.gnu.build-id) }
.hash : { *(.hash) }
--
2.18.0
More information about the devel
mailing list