Closed liarokapisv closed 1 week ago
That has been tried before^1 but it eventually break downs in some cases. But that was also tested years ago; it could be that LLD better supports that these days.
Please discuss that in the linked cortex-m issue.
It seems that it is possible to take advantage of
SIZEOF
of other sections in order to achieve the same functionality thatflip-link
achieves through a small custom section and overriding of_stack_start
:This also has the advantage of working with custom linker sections (by adding a
-SIZEOF(section)
to theALIGN
and region aliases.I am posting to discuss possible issues and tradeoffs of this approach.