-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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: section_tags: fix missing include #76100
Conversation
6248855
to
4520243
Compare
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.
Is the build error reproducible with an upstream board & application?
Sadly no. I thought this one would:
... but it seems that the header is in fact included there, through:
If the official 'solution' is to include |
f46bab2
to
8b16ac4
Compare
8b16ac4
to
93c202b
Compare
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.
<zephyr/linker/sections.h>
includes section_tags.h
at the bottom, but nothing suggests that section_tags.h
is an internal/hidden header, in that sense this PR is a valid fix, since it is not including things that it required.
If that is the case, then this change causes a circular header dependency :/ Would it be better to indicate that Or remove EDIT: |
If using `<zephyr/linker/section_tags.h>` without including `zephyr/linker/sections.h` as well, we get a warning an the linker fails to place the data in the desired section. Signed-off-by: Martin Stumpf <finomnis@gmail.com>
93c202b
to
0400252
Compare
@nashif @tomi-font Now that 3.7 is out, could this be added to 3.7.1? |
Added the relevant backport tag. This PR should be picked up for merging at some point, I think. |
Fixes #76254.
Using section tags like
__dtcm_noinit_section
should resolve to:However, due to a missing include, they resolve to:
... failing to move the variable to the proper section and causing the following warning: