xref: /linux/arch/arm64/include/asm/module.lds.h (revision 34dc1baba215b826e454b8d19e4f24adbeb7d00d)
1 SECTIONS {
2 	.plt 0 : { BYTE(0) }
3 	.init.plt 0 : { BYTE(0) }
4 	.text.ftrace_trampoline 0 : { BYTE(0) }
5 
6 #ifdef CONFIG_KASAN_SW_TAGS
7 	/*
8 	 * Outlined checks go into comdat-deduplicated sections named .text.hot.
9 	 * Because they are in comdats they are not combined by the linker and
10 	 * we otherwise end up with multiple sections with the same .text.hot
11 	 * name in the .ko file. The kernel module loader warns if it sees
12 	 * multiple sections with the same name so we use this sections
13 	 * directive to force them into a single section and silence the
14 	 * warning.
15 	 */
16 	.text.hot : { *(.text.hot) }
17 #endif
18 
19 #ifdef CONFIG_UNWIND_TABLES
20 	/*
21 	 * Currently, we only use unwind info at module load time, so we can
22 	 * put it into the .init allocation.
23 	 */
24 	.init.eh_frame : { *(.eh_frame) }
25 #endif
26 }
27