Skip to content

Commit

Permalink
Merge pull request #510 from rust-embedded/linker-errors
Browse files Browse the repository at this point in the history
cmrt: change condition on _stext location check
  • Loading branch information
adamgreig authored Feb 10, 2024
2 parents 6b3a5b7 + 22ba919 commit f47ec95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cortex-m-rt/link.x.in
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ ASSERT(ADDR(.vector_table) + SIZEOF(.vector_table) <= _stext, "
ERROR(cortex-m-rt): The .text section can't be placed inside the .vector_table section
Set _stext to an address greater than the end of .vector_table (See output of `nm`)");

ASSERT(_stext + SIZEOF(.text) < ORIGIN(FLASH) + LENGTH(FLASH), "
ASSERT(_stext > ORIGIN(FLASH) && _stext < ORIGIN(FLASH) + LENGTH(FLASH), "
ERROR(cortex-m-rt): The .text section must be placed inside the FLASH memory.
Set _stext to an address smaller than 'ORIGIN(FLASH) + LENGTH(FLASH)'");
Set _stext to an address within the FLASH region.");

/* # Other checks */
ASSERT(SIZEOF(.got) == 0, "
Expand Down

0 comments on commit f47ec95

Please sign in to comment.