Skip to content

Commit

Permalink
Update test LD script to respect 4 byte data section alignment (#5517)
Browse files Browse the repository at this point in the history
  • Loading branch information
aronson authored Oct 13, 2024
1 parent a01f9b4 commit b91656d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ld_script_test.ld
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ SECTIONS {
src/*.o(.sbss);
gflib/*.o(.sbss);
test/*.o(.sbss);
. = ALIGN(4);
} > EWRAM

.iwram ORIGIN(IWRAM) : AT (__iwram_lma)
ALIGN(4)
{
__iwram_start = .;
*(.iwram*);
. = ALIGN(4);
__iwram_end = .;
} > IWRAM

Expand All @@ -55,6 +57,7 @@ SECTIONS {
data/*.o(COMMON);
test/*.o(COMMON);
*libc.a:sbrkr.o(COMMON);
. = ALIGN(4);

/* .persistent starts at 0x3007F00 */
/* WARNING: This is the end of the IRQ stack, if there's too
Expand Down

0 comments on commit b91656d

Please sign in to comment.