aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/vmlinux.lds.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r--include/asm-generic/vmlinux.lds.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index d1ea7ce0b4cb..fc62ac5c6d4f 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -149,6 +149,24 @@
149#define TRACE_SYSCALLS() 149#define TRACE_SYSCALLS()
150#endif 150#endif
151 151
152#ifdef CONFIG_CLKSRC_OF
153#define CLKSRC_OF_TABLES() . = ALIGN(8); \
154 VMLINUX_SYMBOL(__clksrc_of_table) = .; \
155 *(__clksrc_of_table) \
156 *(__clksrc_of_table_end)
157#else
158#define CLKSRC_OF_TABLES()
159#endif
160
161#ifdef CONFIG_IRQCHIP
162#define IRQCHIP_OF_MATCH_TABLE() \
163 . = ALIGN(8); \
164 VMLINUX_SYMBOL(__irqchip_begin) = .; \
165 *(__irqchip_of_table) \
166 *(__irqchip_of_end)
167#else
168#define IRQCHIP_OF_MATCH_TABLE()
169#endif
152 170
153#define KERNEL_DTB() \ 171#define KERNEL_DTB() \
154 STRUCT_ALIGN(); \ 172 STRUCT_ALIGN(); \
@@ -493,7 +511,9 @@
493 DEV_DISCARD(init.rodata) \ 511 DEV_DISCARD(init.rodata) \
494 CPU_DISCARD(init.rodata) \ 512 CPU_DISCARD(init.rodata) \
495 MEM_DISCARD(init.rodata) \ 513 MEM_DISCARD(init.rodata) \
496 KERNEL_DTB() 514 CLKSRC_OF_TABLES() \
515 KERNEL_DTB() \
516 IRQCHIP_OF_MATCH_TABLE()
497 517
498#define INIT_TEXT \ 518#define INIT_TEXT \
499 *(.init.text) \ 519 *(.init.text) \