I would like to place a specific data item (or even just a linker symbol would suffice) at the end of all used memory. The use case being somewhat development/debug oriented but wanting a general/automated solution rather than e.g. manually copying over the size from the IDE.
Via section 8.7.2 of spnu118y.pdf I found an entry in the old FAQ "How can I get the linker to place a piece of code or data so that it comes before all the rest?" (https://processors.wiki.ti.com/index.php/Code_Generation_Tools_FAQ#Q:_How_can_I_get_the_linker_to_place_a_piece_of_code_or_data_so_that_it_comes_before_all_the_rest.3F)
What's unclear is how to do the same so that "a piece of code or data" will come after all the rest, since the placement algorithm handles not just the manually configured sections but also lots of implicit/automatic placements. Is there an easy way to control the last placed item?
Basically, I just want a pointer to the last byte/word of the "used" portion of the firmware image. How can I specify that location in my linker command file?