Files

69 lines
1.6 KiB
ArmAsm
Raw Permalink Normal View History

2009-06-24 15:13:38 +09:00
/*
* Common module linker script, always used when linking a module.
* Archs are free to supply their own linker scripts. ld will
* combine them automatically.
*/
#ifdef CONFIG_UNWIND_TABLES
#define DISCARD_EH_FRAME
#else
#define DISCARD_EH_FRAME *(.eh_frame)
#endif
#include <asm-generic/codetag.lds.h>
2009-06-24 15:13:38 +09:00
SECTIONS {
/DISCARD/ : {
*(.discard)
*(.discard.*)
*(.export_symbol)
*(.no_trim_symbol)
}
2011-04-14 14:59:39 +02:00
__ksymtab 0 : ALIGN(8) { *(SORT(___ksymtab+*)) }
__kcrctab 0 : ALIGN(4) { *(SORT(___kcrctab+*)) }
__kflagstab 0 : ALIGN(1) { *(SORT(___kflagstab+*)) }
.ctors 0 : ALIGN(8) { *(SORT(.ctors.*)) *(.ctors) }
2017-03-07 17:31:08 -08:00
.init_array 0 : ALIGN(8) { *(SORT(.init_array.*)) *(.init_array) }
2017-03-01 14:04:53 -08:00
.altinstructions 0 : ALIGN(8) { KEEP(*(.altinstructions)) }
__bug_table 0 : ALIGN(8) { KEEP(*(__bug_table)) }
2017-03-01 14:04:53 -08:00
__jump_table 0 : ALIGN(8) { KEEP(*(__jump_table)) }
2023-11-22 23:18:14 +01:00
__ex_table 0 : ALIGN(4) { KEEP(*(__ex_table)) }
2020-12-11 10:46:22 -08:00
__patchable_function_entries 0 : { *(__patchable_function_entries) }
2020-12-11 10:46:22 -08:00
.init.klp_funcs 0 : ALIGN(8) { KEEP(*(.init.klp_funcs)) }
.init.klp_objects 0 : ALIGN(8) { KEEP(*(.init.klp_objects)) }
2022-09-08 14:54:47 -07:00
#ifdef CONFIG_ARCH_USES_CFI_TRAPS
__kcfi_traps 0 : { KEEP(*(.kcfi_traps)) }
2022-09-08 14:54:47 -07:00
#endif
#ifndef CONFIG_ARCH_WANTS_MODULES_TEXT_SECTIONS
.text 0 : {
*(.text .text.[0-9a-zA-Z_]*)
}
#endif
.bss 0 : {
2020-12-11 10:46:22 -08:00
*(.bss .bss.[0-9a-zA-Z_]*)
*(.bss..L*)
}
.data 0 : {
2020-12-11 10:46:22 -08:00
*(.data .data.[0-9a-zA-Z_]*)
*(.data..L*)
}
.rodata 0 : {
2020-12-11 10:46:22 -08:00
*(.rodata .rodata.[0-9a-zA-Z_]*)
*(.rodata..L*)
}
MOD_SEPARATE_CODETAG_SECTIONS()
2009-06-24 15:13:38 +09:00
}
2020-09-08 13:27:08 +09:00
/* bring in arch-specific sections */
#include <asm/module.lds.h>