diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:31:42 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:31:42 +0200 |
commit | 07e6abe5d5a1813298805bea2bf9d62ad895aaaa (patch) | |
tree | e40ec37ab1a4f46b90f55b67f5fb794c36065b73 | |
parent | 979d6a97a53b5c9738cfb7489ca05a3874042c8d (diff) |
fixed linker script
-rw-r--r-- | fw/fe310/bsp/default.lds | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fw/fe310/bsp/default.lds b/fw/fe310/bsp/default.lds index 7beb458..e8026f9 100644 --- a/fw/fe310/bsp/default.lds +++ b/fw/fe310/bsp/default.lds @@ -145,11 +145,6 @@ SECTIONS * memory into a read-write-capable memory such as data tightly-integrated * memory (DTIM) or another main memory, as well as the BSS, stack, and * heap. - * - * You might notice that .data, .tdata, .tbss, .tbss_space, and .bss all - * have an apparently unnecessary ALIGN at their top. This is because - * the implementation of _start in Freedom Metal libgloss depends on the - * ADDR and LOADADDR being 8-byte aligned. */ .data : { @@ -179,7 +174,7 @@ SECTIONS .stack (NOLOAD) : ALIGN(16) { . += __stack_size; PROVIDE( _sp = . ); - } >ram :ram + } >ram AT>ram :ram PROVIDE( metal_segment_stack_start = ADDR(.stack) ); PROVIDE( metal_segment_stack_end = ADDR(.stack) + SIZEOF(.stack) ); @@ -191,7 +186,7 @@ SECTIONS . = LENGTH(ram) - ( . - ORIGIN(ram)); PROVIDE( _heap_end = . ); PROVIDE( __heap_end = . ); - } >ram :ram + } >ram AT>ram :ram PROVIDE( metal_segment_heap_start = ADDR(.heap) ); PROVIDE( metal_segment_heap_end = ADDR(.heap) + SIZEOF(.heap) ); |