From 672aa7f472bb9397aee52462b6a8cb23425d3bf9 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 3 Dec 2014 14:04:57 +0000 Subject: [PATCH] Increase BERI loader section alignment to 16 The .text, .bss, and .data sections claimed 16-byte alignment, but were only aligned to 8 by the linker script. Discovered with strip(1) from elftoolchain, which performs validation absent from the binutils strip(1). Sponsored by: DARPA, AFRL --- sys/boot/mips/beri/loader/loader.ldscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/boot/mips/beri/loader/loader.ldscript b/sys/boot/mips/beri/loader/loader.ldscript index 4d1c82ddd4f..b4e804738dc 100644 --- a/sys/boot/mips/beri/loader/loader.ldscript +++ b/sys/boot/mips/beri/loader/loader.ldscript @@ -57,7 +57,7 @@ SECTIONS . = __loader_base_vaddr__; . += SIZEOF_HEADERS; - .text ALIGN(0x8): { + .text ALIGN(0x10): { start.o(.text*) *(EXCLUDE_FILE (start.o) .text*) *(.rodata*) @@ -66,8 +66,8 @@ SECTIONS KEEP(*(set_Xcommand_set)) __stop_set_Xcommand_set = .; } - .data ALIGN(0x8): { *(.data*)} - .bss ALIGN(0x8): { *(.bss*) } + .data ALIGN(0x10): { *(.data*)} + .bss ALIGN(0x10): { *(.bss*) } __heap = ALIGN(0x8); /* 64-bit aligned heap pointer */ __data_end = .;