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