-
Notifications
You must be signed in to change notification settings - Fork 7.4k
linker generator: Handle .last_section #89739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linker generator: Handle .last_section #89739
Conversation
cmake/linker_script/arm/linker.cmake
Outdated
# rom region data usage match when CONFIG_LINKER_LAST_SECTION_ID=y. | ||
zephyr_linker_section(NAME .last_section VMA FLASH LMA FLASH NOINPUT) | ||
# KEEP can not be passed to zephyr_linker_section, so: | ||
zephyr_linker_section_configure(SECTION .last_section INPUT ".last_section" KEEP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newline at the end of the file :) you probably need to config your editor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed now.
b2fbffb
to
13e4ae6
Compare
Hmm. On closer inspection this didnt solve the problem. I'll be back |
fb61ec6
to
8ae871a
Compare
Add cmake linker generator things for .last_section. Follow up to zephyrproject-rtos#88970. Fixes bug zephyrproject-rtos#89719, for gcc/ld & iar Signed-off-by: Björn Bergman <bjorn.bergman@iar.com>
8ae871a
to
06bc457
Compare
|
In the current state it works. Except in a corner case for iar (which will be fixed elsewhere). So please, review and if approriate, approve |
Any reviews or comments would be highly appreciated |
Add cmake linker generator things for .last_section for cmake linker generator.
Follow up to #88970. Fixes bug #89719, for gcc/ld not for iar (yet)
This has been checked as described in the bug:
west -v build -p -b qemu_cortex_m3 /workdir/zephyr_iar-mn/tests/kernel/threads/thread_apis -- -DZEPHYR_TOOLCHAIN_VARIANT=zephyr -DCONFIG_CMAKE_LINKER_GENERATOR=y -DCONFIG_LINKER_LAST_SECTION_ID=y
Comparing the map-files with and without CONFIG_CMAKE_LINKER_GENERATOR.