summaryrefslogtreecommitdiffstats
path: root/sbe
diff options
context:
space:
mode:
authorSachin Gupta <sgupta2m@in.ibm.com>2016-06-17 09:45:10 -0500
committerAMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>2016-06-27 04:57:49 -0400
commitcbf56db7be7dc3c11c86c429bbee70c8707ef2c9 (patch)
treeda1293f33bd733f6fb5a2620c4258e8dd405cdb5 /sbe
parent2379efdd0ee191059cd7ed3636dbdf36dd2a1fc2 (diff)
downloadtalos-sbe-cbf56db7be7dc3c11c86c429bbee70c8707ef2c9.tar.gz
talos-sbe-cbf56db7be7dc3c11c86c429bbee70c8707ef2c9.zip
Remove bss section from SBE image
Change-Id: I4167cf412c45f9228766d5db53c6ceb9bd8db384 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25986 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'sbe')
-rw-r--r--sbe/image/linkseeprom.cmd28
1 files changed, 15 insertions, 13 deletions
diff --git a/sbe/image/linkseeprom.cmd b/sbe/image/linkseeprom.cmd
index 04f5acb1..49bb69ce 100644
--- a/sbe/image/linkseeprom.cmd
+++ b/sbe/image/linkseeprom.cmd
@@ -168,19 +168,27 @@ SECTIONS
. = ALIGN(8); _DATA_SECTION_BASE = .;
_SDA_BASE_ = .;
.data . : {
- *(.data*) *(.bss*) *(.comment)
+ *(.data*) *(.comment)
} > pibmem
.sdata . : { *(.sdata*) } > pibmem
. = ALIGN(8);
- _sbss_start = .;
- .sbss . : {
- *(.sbss*);
+
+ // We do not want to store bss section in sbe image as laoder will take
+ // care of it while loading image on PIBMEM. It will save us space in
+ // SEEPROM. So define XIP image related variables here so that SBE image
+ // finishes here.
+
+ _base_size = . - _base_origin;
+ _pibmem_size = . - _pibmem_origin;
+ _sbe_image_size = _seeprom_size + ( . - _pibmem_origin );
+
+ _sbss_start = .;
+ .sbss . : {
+ *(.bss*) *(.sbss*);
. = ALIGN(8);
} > pibmem
- _sbss_end = .;
+ _sbss_end = .;
- // As bss section is not expanded by default, reserve the space
- . = . + SIZEOF(.sbss);
. = ALIGN(8);
_sbss_size = SIZEOF(.sbss);
@@ -190,10 +198,4 @@ SECTIONS
_PK_INITIAL_STACK = . - 1;
. = ALIGN(8);
- _base_size = . - _base_origin;
-
- . = ALIGN(8);
- _pibmem_size = . - _pibmem_origin;
- _sbe_image_size = _seeprom_size + ( . - _pibmem_origin );
-
}
OpenPOWER on IntegriCloud