Skip to content

Commit

Permalink
Merge pull request #573 from 9names/fix_stext_assert
Browse files Browse the repository at this point in the history
cortex-m-rt: fix off-by-one in .text in FLASH section assert
  • Loading branch information
adamgreig authored Jan 11, 2025
2 parents 9177271 + 0b835aa commit b02ec57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cortex-m-rt/link.x.in
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ 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 > ORIGIN(FLASH) && _stext < 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 within the FLASH region.");

Expand Down

0 comments on commit b02ec57

Please sign in to comment.