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.
This commit is contained in:
Amaan Cheval
2018-08-13 15:55:51 +05:30
committed by Joel Sherrill
parent ab971bf5e3
commit 6eccd0c7e7

View File

@@ -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) }