From 9c0047b3ea27e089d6359bc9993cfa81b1654c8f Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Wed, 30 Aug 2023 15:07:56 +0200 Subject: [PATCH] updates linker script for rtl env --- bare-metal-bsp/env/rtl/link.lds | 7 ++++++- benchmarks/dhrystone/.gitignore | 1 + hello-world/.gitignore | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 hello-world/.gitignore diff --git a/bare-metal-bsp/env/rtl/link.lds b/bare-metal-bsp/env/rtl/link.lds index 48719fe..adab24c 100644 --- a/bare-metal-bsp/env/rtl/link.lds +++ b/bare-metal-bsp/env/rtl/link.lds @@ -118,6 +118,7 @@ SECTIONS .data : { + __DATA_BEGIN__ = .; *(.data .data.*) *(.gnu.linkonce.d.*) } >ram AT>flash :ram_init @@ -134,6 +135,7 @@ SECTIONS .sdata : { + __SDATA_BEGIN__ = .; *(.sdata .sdata.*) *(.gnu.linkonce.s.*) } >ram AT>flash :ram_init @@ -155,6 +157,8 @@ SECTIONS } >ram AT>ram :ram . = ALIGN(8); + __BSS_END__ = .; + __global_pointer$ = MIN(__SDATA_BEGIN__ + 0x800, MAX(__DATA_BEGIN__ + 0x800, __BSS_END__ - 0x800)); PROVIDE( _end = . ); PROVIDE( end = . ); @@ -165,6 +169,7 @@ SECTIONS PROVIDE( _sp = . ); } >ram AT>ram :ram - PROVIDE( tohost = 0x00018000 ); + #PROVIDE( tohost = 0x00018000 ); + PROVIDE( tohost = 0xfffffff0 ); PROVIDE( fromhost = 0xfffffff8 ); } diff --git a/benchmarks/dhrystone/.gitignore b/benchmarks/dhrystone/.gitignore index eb51a6c..f8028c7 100644 --- a/benchmarks/dhrystone/.gitignore +++ b/benchmarks/dhrystone/.gitignore @@ -1 +1,2 @@ dhrystone +/dhrystone.dis diff --git a/hello-world/.gitignore b/hello-world/.gitignore new file mode 100644 index 0000000..35be72e --- /dev/null +++ b/hello-world/.gitignore @@ -0,0 +1,2 @@ +/hello +/hello.dis