Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit eb992a8

Browse files
committed
work around OpenOCD crash when using LLD
1 parent d812938 commit eb992a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

link.x

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ SECTIONS
5454
*(.bss .bss.*);
5555
. = ALIGN(4);
5656
_ebss = .;
57-
} > RAM
57+
} > RAM AT > FLASH
58+
/* NOTE(AT > FLASH) without this LLD v6 produces a binary that crashes OpenOCD whereas LLD v7
59+
emits a ".rodata and .bss sections overlap" error ... This hacky workaround doesn't increase
60+
the binary size AFAICT */
5861

5962
.data : ALIGN(4)
6063
{

0 commit comments

Comments
 (0)