diff options
author | Amaan Cheval <amaan.cheval@gmail.com> | 2018-08-13 15:55:51 +0530 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2018-08-13 10:48:20 -0500 |
commit | 6eccd0c7e7b0e84e2ff6394b842addbb1b0be309 (patch) | |
tree | 867c61c16381b67be6394fe7fd7bd9fe0d1a3bf4 /bsps/x86_64 | |
parent | bsps/x86_64: Reorganize header files and compile-options (diff) | |
download | rtems-6eccd0c7e7b0e84e2ff6394b842addbb1b0be309.tar.bz2 |
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.
Diffstat (limited to 'bsps/x86_64')
-rw-r--r-- | bsps/x86_64/amd64/start/linkcmds | 6 |
1 files 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) } |