summaryrefslogtreecommitdiff
path: root/bsp/env
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-06-10 13:20:01 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-06-10 13:20:01 -0700
commit9cb0177cdf178e7f941341b98bf85289c6b30b1f (patch)
tree4bd296adf318a7df6ae59cbe77dc8e060ba60de7 /bsp/env
parent4fbbeee0d970ec86ab5b100461104a1db7be746d (diff)
Just lump all the RAM sections together
Since our loader doesn't support multiple sections anyway, there's really no reason to have all these sections floating around. They're causing trouble due to misalignment so it's easiest to just group them together so we can properly enforce alignment.
Diffstat (limited to 'bsp/env')
-rw-r--r--bsp/env/coreplexip-e31-arty/link.lds10
-rw-r--r--bsp/env/freedom-e300-hifive1/link.lds10
2 files changed, 4 insertions, 16 deletions
diff --git a/bsp/env/coreplexip-e31-arty/link.lds b/bsp/env/coreplexip-e31-arty/link.lds
index 2570333..590c5b6 100644
--- a/bsp/env/coreplexip-e31-arty/link.lds
+++ b/bsp/env/coreplexip-e31-arty/link.lds
@@ -120,17 +120,11 @@ SECTIONS
{
*(.data .data.*)
*(.gnu.linkonce.d.*)
- } >ram AT>flash :ram_init
-
- .sdata :
- {
+ . = ALIGN(8);
PROVIDE( __global_pointer$ = . + 0x800 );
*(.sdata .sdata.*)
*(.gnu.linkonce.s.*)
- } >ram AT>flash :ram_init
-
- .srodata :
- {
+ . = ALIGN(8);
*(.srodata.cst16)
*(.srodata.cst8)
*(.srodata.cst4)
diff --git a/bsp/env/freedom-e300-hifive1/link.lds b/bsp/env/freedom-e300-hifive1/link.lds
index 13349b5..6b37141 100644
--- a/bsp/env/freedom-e300-hifive1/link.lds
+++ b/bsp/env/freedom-e300-hifive1/link.lds
@@ -120,17 +120,11 @@ SECTIONS
{
*(.data .data.*)
*(.gnu.linkonce.d.*)
- } >ram AT>flash :ram_init
-
- .sdata :
- {
+ . = ALIGN(8);
PROVIDE( __global_pointer$ = . + 0x800 );
*(.sdata .sdata.*)
*(.gnu.linkonce.s.*)
- } >ram AT>flash :ram_init
-
- .srodata :
- {
+ . = ALIGN(8);
*(.srodata.cst16)
*(.srodata.cst8)
*(.srodata.cst4)