From 903d03d03e658837d0ef5944b36f2b100232cd62 Mon Sep 17 00:00:00 2001 From: Shakeeb Date: Fri, 16 Sep 2016 11:56:24 -0500 Subject: PIBMEM Image support Change-Id: I0a88f8963b28905791ddfe92ad649b1584a0b943 RTC:158600 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29852 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: RAJA DAS Reviewed-by: Sachin Gupta Reviewed-by: AMIT J. TENDOLKAR --- src/build/linkerscripts/linksbe.cmd | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'src/build/linkerscripts/linksbe.cmd') diff --git a/src/build/linkerscripts/linksbe.cmd b/src/build/linkerscripts/linksbe.cmd index 12250a9d..7a5cc5bf 100644 --- a/src/build/linkerscripts/linksbe.cmd +++ b/src/build/linkerscripts/linksbe.cmd @@ -35,20 +35,16 @@ OUTPUT_FORMAT(elf32-powerpc); MEMORY { - // increasing ram size as workaround so that pibmem image compilation - // doe not fail. - // TODO: Reducing the SBE_BASE_ORIGIN by 0x1F000 to reduce the size of - // generated sbe_pibmem.bin. Just a workaround to use pibmem for poweron - sram : ORIGIN = SBE_BASE_ORIGIN - 0x1F000, LENGTH = SBE_BASE_LENGTH + 0x1F000 + pibmem : ORIGIN = SBE_BASE_ORIGIN, LENGTH = SBE_BASE_LENGTH } SECTIONS { - . = SBE_BASE_ORIGIN - 0x1F000; + . = SBE_BASE_ORIGIN; - .vectors : {. = ALIGN(512); *(.vectors)} > sram - .fixed . : {. = ALIGN(512); *(.fixed) } > sram - .text . : {. = ALIGN(512); *(.text)} > sram + .vectors : {. = ALIGN(512); *(.vectors)} > pibmem + .fixed . : {. = ALIGN(512); *(.fixed) } > pibmem + .text . : {. = ALIGN(512); *(.text)} > pibmem //////////////////////////////// // Read-only Data @@ -62,8 +58,8 @@ SECTIONS // offsets. _SDA2_BASE_ = .; - .sdata2 . : { *(.sdata2*) } > sram - .sbss2 . : { *(.sbss2*) } > sram + .sdata2 . : { *(.sdata2*) } > pibmem + .sbss2 . : { *(.sbss2*) } > pibmem // Other read-only data. @@ -71,7 +67,7 @@ SECTIONS .rodata . : { ctor_start_address = .; *(.ctors) *(.ctors.*) ctor_end_address = .; - *(rodata*) *(.got2) } > sram + *(rodata*) *(.got2) } > pibmem _RODATA_SECTION_SIZE = . - _RODATA_SECTION_BASE; @@ -87,16 +83,16 @@ SECTIONS // offsets. _SDA_BASE_ = .; - .sdata . : { *(.sdata*) } > sram + .sdata . : { *(.sdata*) } > pibmem _sbss_start = .; - .sbss . : { *(.sbss*) } > sram + .sbss . : { *(.sbss*) } > pibmem _sbss_end = .; // Other read-write data // It's not clear why boot.S is generating empty .glink,.iplt - .rela . : { *(.rela*) } > sram - .rwdata . : { *(.data*) *(.bss*) } > sram + .rela . : { *(.rela*) } > pibmem + .rwdata . : { *(.data*) *(.bss*) } > pibmem . = ALIGN(8); _PK_INITIAL_STACK_LIMIT = .; -- cgit v1.2.1