mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
riscv: Ensure that BSS is 8-byte aligned
This makes clearing it (from locore.S) work without misaligned accesses (which can trap to machine mode, and be slow). Reviewed by: br Sponsored by: Axiado Differential Revision: https://reviews.freebsd.org/D21538
This commit is contained in:
parent
c57596e1ae
commit
62ea153efd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352071
@ -99,7 +99,7 @@ SECTIONS
|
||||
/* Ensure __bss_start is associated with the next section in case orphan
|
||||
sections are placed directly after .sdata, as has been seen to happen with
|
||||
LLD. */
|
||||
. = .;
|
||||
. = ALIGN(8);
|
||||
__bss_start = .;
|
||||
.sbss : { *(.sbss) *(.scommon) }
|
||||
.bss :
|
||||
|
Loading…
Reference in New Issue
Block a user