Increase BERI boot components 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 elfcopy(1) from elftoolchain, which performs validation
absent from the binutils strip(1). ELF tool chain ticket #512.

Reported by:	brooks
Reviewed by:	brooks
Sponsored by:	DARPA, AFRL
This commit is contained in:
emaste 2016-01-20 18:35:43 +00:00
parent 544edda669
commit a384961239
2 changed files with 6 additions and 6 deletions

View File

@ -49,13 +49,13 @@ SECTIONS
{
. = __boot2_base_vaddr__;
. += SIZEOF_HEADERS;
.text ALIGN(0x8): {
.text ALIGN(0x10): {
relocate.o(.text)
start.o(.text)
*(EXCLUDE_FILE (relocate.o start.o) .text)
}
.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 = .;

View File

@ -49,12 +49,12 @@ SECTIONS
{
. = __boot2_base_vaddr__;
. += SIZEOF_HEADERS;
.text ALIGN(0x8): {
.text ALIGN(0x10): {
start.o(.text)
*(EXCLUDE_FILE (start.o) .text)
}
.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 = .;