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