Skip to content

Commit 7e56d42

Browse files
committed
don't over-constrain the .data section
we were forcing the .data section to start at _ebss (end of the .bss section) but this was causing linking errors in some cases: ``` console error: linking with `arm-none-eabi-ld` failed: exit code: 1 (..) note: arm-none-eabi-ld: section .data VMA [20000008,2000006f] overlaps section .bss VMA [20000000,2000000b] ``` removing this constraint fixes the problem. Even without it the linker will place the .data section right after the .bss section
1 parent 12295a8 commit 7e56d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex-m-rt/link.x

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ SECTIONS
7070
_ebss = .;
7171
} > RAM
7272

73-
.data _ebss : ALIGN(4)
73+
.data : ALIGN(4)
7474
{
7575
_sidata = LOADADDR(.data);
7676
_sdata = .;

0 commit comments

Comments
 (0)