svn commit: r352071 - head/sys/conf
Kristof Provost
kp at FreeBSD.org
Mon Sep 9 15:57:25 UTC 2019
Author: kp
Date: Mon Sep 9 15:57:24 2019
New Revision: 352071
URL: https://svnweb.freebsd.org/changeset/base/352071
Log:
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
Modified:
head/sys/conf/ldscript.riscv
Modified: head/sys/conf/ldscript.riscv
==============================================================================
--- head/sys/conf/ldscript.riscv Mon Sep 9 15:37:40 2019 (r352070)
+++ head/sys/conf/ldscript.riscv Mon Sep 9 15:57:24 2019 (r352071)
@@ -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 :
More information about the svn-src-all
mailing list