Skip to content

Commit

Permalink
linker: section_tags: fix missing include
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 77eafac)
  • Loading branch information
Finomnis authored and nashif committed Sep 6, 2024
1 parent b8fa7ee commit 5c8d7b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/zephyr/linker/section_tags.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#if !defined(_ASMLANGUAGE)

#include <zephyr/linker/sections.h>

#define __noinit __in_section_unique(_NOINIT_SECTION_NAME)
#define __noinit_named(name) __in_section_unique_named(_NOINIT_SECTION_NAME, name)
#define __irq_vector_table Z_GENERIC_SECTION(_IRQ_VECTOR_TABLE_SECTION_NAME)
Expand Down

0 comments on commit 5c8d7b2

Please sign in to comment.