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

Commit

Permalink
work around OpenOCD crash when using LLD
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Apr 6, 2018
1 parent ae449d5 commit e786e3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion link.x
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ SECTIONS
*(.bss .bss.*);
. = ALIGN(4);
_ebss = .;
} > RAM
} > RAM AT > FLASH
/* NOTE(AT > FLASH) without this LLD v6 produces a binary that crashes OpenOCD whereas LLD v7
emits a ".rodata and .bss sections overlap" error ... This hacky workaround doesn't increase
the binary size AFAICT */

.data : ALIGN(4)
{
Expand Down

0 comments on commit e786e3c

Please sign in to comment.