Date: Mon, 9 Sep 2019 15:57:24 +0000 (UTC) From: Kristof Provost <kp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r352071 - head/sys/conf Message-ID: <201909091557.x89FvOwd022487@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 :
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909091557.x89FvOwd022487>