From 6eccd0c7e7b0e84e2ff6394b842addbb1b0be309 Mon Sep 17 00:00:00 2001 From: Amaan Cheval Date: Mon, 13 Aug 2018 15:55:51 +0530 Subject: bsps/x86_64: Reduce default RamSize to 1GiB 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) } -- cgit v1.2.3