Skip to content

Commit 6ba4488

Browse files
dcpleungnashif
authored andcommitted
linker: more .rel for orphan sections
There are sections defined in common-rom/ram.ld where they are showing up as orphan sections. So add these as known sections. Fixes #10493 Signed-off-by: Daniel Leung <[email protected]>
1 parent 7701979 commit 6ba4488

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

include/linker/rel-sections.ld

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,20 @@
4949
#endif
5050

5151
*(.rel.devconfig.*)
52-
*(.rel._k_alert.*)
53-
*(.rel._k_mem_pool.*)
54-
*(.rel._k_timer.*)
52+
53+
*(.rel._k_*)
54+
55+
*(.rel._bt_settings.*)
56+
57+
*(.rel.log_*)
58+
59+
*(.rel._net_buf_pool.*)
60+
*(.rel.net_*)
61+
5562
*(.rel._static_thread_data.*)
5663

64+
*(.rel.usb.*)
65+
5766
#if defined(CONFIG_X86)
5867
*(.rel.ifunc)
5968
*(.rel.mmulist)
@@ -88,13 +97,23 @@
8897
*(.rela.init_PRE_KERNEL*)
8998
*(.rela.init_POST_KERNEL*)
9099
*(.rela.init_APPLICATION*)
91-
*(.rela._k_alert.*)
92-
*(.rela._k_mem_pool.*)
93-
*(.rela._k_timer.*)
100+
101+
*(.rela.devconfig.*)
102+
103+
*(.rela._k_*)
104+
105+
*(.rela._bt_settings.*)
106+
107+
*(.rela.log_*)
108+
109+
*(.rela._net_buf_pool.*)
110+
*(.rela.net_*)
111+
94112
*(.rela._static_thread_data.*)
95113

114+
*(.rela.usb.*)
115+
96116
#if defined(CONFIG_RISCV32)
97-
*(.rela.devconfig.*)
98117
*(.rela.exception.*)
99118
*(.rela.gnu.linkonce.sw_isr_table)
100119
*(.rela.sdata.*)

0 commit comments

Comments
 (0)