From b771932dc75e689aeea7236a08ac9b92e3ab6734 Mon Sep 17 00:00:00 2001 From: Sachin Gupta Date: Mon, 4 Apr 2016 05:36:01 -0500 Subject: Fix section allignment If linker script defines some variables which are used by mainline code, keep them on 8 byte allign boundary so that read/write does not fail for those variables. Change-Id: Ie53332ae78f242793e8b7e3a6ec67d079440efc2 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22830 Reviewed-by: RAJA DAS Tested-by: Jenkins Server Reviewed-by: Santosh S. Puranik Reviewed-by: AMIT J. TENDOLKAR --- sbe/image/linksbe.cmd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sbe') diff --git a/sbe/image/linksbe.cmd b/sbe/image/linksbe.cmd index a0f76dca..6e287d28 100644 --- a/sbe/image/linksbe.cmd +++ b/sbe/image/linksbe.cmd @@ -39,6 +39,7 @@ SECTIONS // Other read-only data. + . = ALIGN(8); .rodata . : { ctor_start_address = .; *(.ctors) *(.ctors.*) ctor_end_address = .; @@ -67,6 +68,7 @@ SECTIONS .rela . : { *(.rela*) } > sram .rwdata . : { *(.data*) *(.bss*) } > sram + . = ALIGN(8); _PK_INITIAL_STACK_LIMIT = .; . = . + INITIAL_STACK_SIZE; _PK_INITIAL_STACK = . - 1; -- cgit v1.2.1