diff options
Diffstat (limited to 'bsps/x86_64/amd64/start/linkcmds')
-rw-r--r-- | bsps/x86_64/amd64/start/linkcmds | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bsps/x86_64/amd64/start/linkcmds b/bsps/x86_64/amd64/start/linkcmds index ab6981e872..b0de91f160 100644 --- a/bsps/x86_64/amd64/start/linkcmds +++ b/bsps/x86_64/amd64/start/linkcmds @@ -28,13 +28,15 @@ RamBase = DEFINED(RamBase) ? RamBase : /* XXX: Defaulting to 1GiB. */ RamSize = DEFINED(RamSize) ? RamSize : - DEFINED(_RamSize) ? _RamSize : 0x40000000; + /* DEFINED(_RamSize) ? _RamSize : 0x2000000;*/ /* 32MB */ + DEFINED(_RamSize) ? _RamSize : 0x1000000; /* 16MB */ RamEnd = RamBase + RamSize; SECTIONS { /* Read-only sections, merged into text segment: */ PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x00100000)); . = SEGMENT_START("text-segment", 0x00100000) + SIZEOF_HEADERS; +/* .multiboot2_header : { *(.multiboot2_header) }*/ .interp : { *(.interp) } .note.gnu.build-id : { *(.note.gnu.build-id) } .hash : { *(.hash) } @@ -88,6 +90,7 @@ SECTIONS .plt.sec : { *(.plt.sec) } .text : { + KEEP (*(.multiboot2_header)) *(.text.unlikely .text.*_unlikely .text.unlikely.*) *(.text.exit .text.exit.*) *(.text.startup .text.startup.*) @@ -234,8 +237,9 @@ SECTIONS _end = .; PROVIDE (end = .); .noinit (NOLOAD) : { - *(.noinit*) + *(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*))) } + . = ALIGN(64); .rtemsstack (NOLOAD) : { *(SORT(.rtemsstack.*)) |