aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/ldscript.riscv
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-02-04 00:06:16 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-02-04 00:06:16 +0000
commitfebe2bd226e2702bea7d0b68ac30453cf7025388 (patch)
treedea8e35b7c848c124d7c7961d04cf543fe5864ab /sys/conf/ldscript.riscv
parentd6f79b2710ad919f911cffe2f54f51891c023111 (diff)
Notes
Diffstat (limited to 'sys/conf/ldscript.riscv')
-rw-r--r--sys/conf/ldscript.riscv3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/conf/ldscript.riscv b/sys/conf/ldscript.riscv
index 2986486cf844..b8ebf047f996 100644
--- a/sys/conf/ldscript.riscv
+++ b/sys/conf/ldscript.riscv
@@ -7,7 +7,8 @@ SECTIONS
{
/* Read-only sections, merged into text segment: */
. = kernbase;
- .text : AT(ADDR(.text) - kernbase)
+ /* The load address kernel_lma is set using --defsym= on the command line. */
+ .text : AT(kernel_lma)
{
*(.text)
*(.stub)