Skip to content

Commit 68ee177

Browse files
talih0carlescufi
authored andcommitted
linker: devicetree_regions: Infer VMA when defining section
Explicitly setting the start of VMA can intefere if the memory region was used in another section, for example indirectly via zephyr_code_relocate(). Signed-off-by: Andriy Gelman <[email protected]>
1 parent a451a03 commit 68ee177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/zephyr/linker/devicetree_regions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
* will result in:
137137
*
138138
* @code{.unparsed}
139-
* FOOBAR 0x20010000 (NOLOAD) :
139+
* FOOBAR (NOLOAD) :
140140
* {
141141
* __FOOBAR_start = .;
142142
* KEEP(*(FOOBAR))
@@ -150,7 +150,7 @@
150150
* @param node_id devicetree node identifier
151151
*/
152152
#define _SECTION_DECLARE(node_id) \
153-
LINKER_DT_NODE_REGION_NAME_TOKEN(node_id) DT_REG_ADDR(node_id) (NOLOAD) : \
153+
LINKER_DT_NODE_REGION_NAME_TOKEN(node_id) (NOLOAD) : \
154154
{ \
155155
_DT_SECTION_START(node_id) = .; \
156156
KEEP(*(LINKER_DT_NODE_REGION_NAME_TOKEN(node_id))) \

0 commit comments

Comments
 (0)