aboutsummaryrefslogtreecommitdiff
path: root/bbl
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2018-12-19 14:56:21 -0800
committerAndrew Waterman <aswaterman@gmail.com>2019-01-04 13:40:23 -0800
commitdca89b7e453732931f3c28c0ff91634c7c235b3f (patch)
tree2cb733a8b1ea440a454689ae23b19057e598f0a5 /bbl
parent474d787f1b290acd16c2c27071d15afe98aaa196 (diff)
downloadriscv-pk-dca89b7e453732931f3c28c0ff91634c7c235b3f.zip
riscv-pk-dca89b7e453732931f3c28c0ff91634c7c235b3f.tar.gz
riscv-pk-dca89b7e453732931f3c28c0ff91634c7c235b3f.tar.bz2
Page-align the writable data section
For eventual PMP purposes
Diffstat (limited to 'bbl')
-rw-r--r--bbl/bbl.lds7
1 files changed, 4 insertions, 3 deletions
diff --git a/bbl/bbl.lds b/bbl/bbl.lds
index 892621a..397cd3f 100644
--- a/bbl/bbl.lds
+++ b/bbl/bbl.lds
@@ -38,12 +38,12 @@ SECTIONS
}
/* End of code and read-only segment */
+ . = ALIGN(0x1000);
_etext = .;
/*--------------------------------------------------------------------*/
/* HTIF, isolated onto separate page */
/*--------------------------------------------------------------------*/
- . = ALIGN(0x1000);
.htif :
{
PROVIDE( __htif_base = . );
@@ -96,10 +96,11 @@ SECTIONS
*(COMMON)
}
+ . = ALIGN(0x1000);
+ _end = .;
+
.payload :
{
*(.payload)
}
-
- _end = .;
}