From 9cb0177cdf178e7f941341b98bf85289c6b30b1f Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Sat, 10 Jun 2017 13:20:01 -0700 Subject: 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. --- bsp/env/coreplexip-e31-arty/link.lds | 10 ++-------- bsp/env/freedom-e300-hifive1/link.lds | 10 ++-------- 2 files changed, 4 insertions(+), 16 deletions(-) (limited to 'bsp') 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) -- cgit v1.2.3