summaryrefslogtreecommitdiffstats
path: root/sys/boot/mips
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-12-03 14:04:57 +0000
committeremaste <emaste@FreeBSD.org>2014-12-03 14:04:57 +0000
commitdcd97c2f3983915779e6edb0ea9adc80874822b1 (patch)
tree594ef1fff0f59edc7596552a391eb2ad5b88ba5a /sys/boot/mips
parent3167e2db4c943873e00c698889aa7aa92149f2c9 (diff)
downloadFreeBSD-src-dcd97c2f3983915779e6edb0ea9adc80874822b1.zip
FreeBSD-src-dcd97c2f3983915779e6edb0ea9adc80874822b1.tar.gz
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
Diffstat (limited to 'sys/boot/mips')
-rw-r--r--sys/boot/mips/beri/loader/loader.ldscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/mips/beri/loader/loader.ldscript b/sys/boot/mips/beri/loader/loader.ldscript
index 4d1c82d..b4e8047 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 = .;
OpenPOWER on IntegriCloud