diff options
author | Andrew Waterman <andrew@sifive.com> | 2018-12-19 14:56:21 -0800 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2019-01-04 13:40:23 -0800 |
commit | dca89b7e453732931f3c28c0ff91634c7c235b3f (patch) | |
tree | 2cb733a8b1ea440a454689ae23b19057e598f0a5 | |
parent | 474d787f1b290acd16c2c27071d15afe98aaa196 (diff) | |
download | pk-dca89b7e453732931f3c28c0ff91634c7c235b3f.zip pk-dca89b7e453732931f3c28c0ff91634c7c235b3f.tar.gz pk-dca89b7e453732931f3c28c0ff91634c7c235b3f.tar.bz2 |
Page-align the writable data section
For eventual PMP purposes
-rw-r--r-- | bbl/bbl.lds | 7 | ||||
-rw-r--r-- | pk/pk.lds | 3 |
2 files changed, 6 insertions, 4 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 = .; } @@ -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,5 +96,6 @@ SECTIONS *(COMMON) } + . = ALIGN(0x1000); _end = .; } |