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