linker generator: Handle .last_section

Add  cmake linker generator things for .last_section.

Follow up to #88970. Fixes bug #89719, for gcc/ld & iar

Signed-off-by: Björn Bergman <bjorn.bergman@iar.com>
This commit is contained in:
Björn Bergman 2025-05-09 15:41:44 +02:00 committed by Benjamin Cabé
commit 01d3316810
4 changed files with 126 additions and 121 deletions

View file

@ -5167,6 +5167,10 @@ endfunction()
# the given passes. Empty list means no passes.
# PASS NOT [<p1>] [<p2>...] makes the section present in
# all but the given passes. Empty list means all passes.
# TYPE <type> : Tag section for special treatment.
# NOLOAD, BSS - Ensure that the section is NOLOAD
# LINKER_SCRIPT_FOOTER - One single section to be
# generated last
# Note: VMA and LMA are mutual exclusive with GROUP
#
function(zephyr_linker_section)