diff options
author | andrew <andrew@FreeBSD.org> | 2016-02-09 00:01:43 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-02-09 00:01:43 +0000 |
commit | cf9bbb5d8a662f4d2b15810a6a5e4d101df90f35 (patch) | |
tree | f34e126577154564e25ac6814aced60c50ea993e /sys/boot/efi/loader | |
parent | f6d0271729d6eb549c3ccc7d80a28b200801e97c (diff) | |
download | FreeBSD-src-cf9bbb5d8a662f4d2b15810a6a5e4d101df90f35.zip FreeBSD-src-cf9bbb5d8a662f4d2b15810a6a5e4d101df90f35.tar.gz |
Ensure the bss is aligned to a 4-byte address as we use 4-byte aligned
stores to clear it.
While here reduce the alignment of the data from 4k to 16 byte aligned.
This should be more than enough, without wasting too much space.
Sponsored by: ABT Systems Ltd
Diffstat (limited to 'sys/boot/efi/loader')
-rw-r--r-- | sys/boot/efi/loader/arch/arm/ldscript.arm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/boot/efi/loader/arch/arm/ldscript.arm b/sys/boot/efi/loader/arch/arm/ldscript.arm index 4dcf302..8b4a6dc 100644 --- a/sys/boot/efi/loader/arch/arm/ldscript.arm +++ b/sys/boot/efi/loader/arch/arm/ldscript.arm @@ -15,7 +15,7 @@ SECTIONS } =0 _etext = .; PROVIDE (etext = .); - . = ALIGN(4096); + . = ALIGN(16); .data : { *(.data *.data.*) @@ -24,6 +24,7 @@ SECTIONS *(.rodata.*) CONSTRUCTORS + . = ALIGN(4); PROVIDE (__bss_start = .); *(.sbss) *(.scommon) @@ -31,6 +32,7 @@ SECTIONS *(.dynbss) *(.bss) *(COMMON) + . = ALIGN(4); PROVIDE (__bss_end = .); } /* We want the small data sections together, so single-instruction offsets |