|
@@ -203,6 +203,15 @@
|
|
|
#define EARLYCON_TABLE()
|
|
|
#endif
|
|
|
|
|
|
+#ifdef CONFIG_SECURITY
|
|
|
+#define LSM_TABLE() . = ALIGN(8); \
|
|
|
+ __start_lsm_info = .; \
|
|
|
+ KEEP(*(.lsm_info.init)) \
|
|
|
+ __end_lsm_info = .;
|
|
|
+#else
|
|
|
+#define LSM_TABLE()
|
|
|
+#endif
|
|
|
+
|
|
|
#define ___OF_TABLE(cfg, name) _OF_TABLE_##cfg(name)
|
|
|
#define __OF_TABLE(cfg, name) ___OF_TABLE(cfg, name)
|
|
|
#define OF_TABLE(cfg, name) __OF_TABLE(IS_ENABLED(cfg), name)
|
|
@@ -597,7 +606,8 @@
|
|
|
IRQCHIP_OF_MATCH_TABLE() \
|
|
|
ACPI_PROBE_TABLE(irqchip) \
|
|
|
ACPI_PROBE_TABLE(timer) \
|
|
|
- EARLYCON_TABLE()
|
|
|
+ EARLYCON_TABLE() \
|
|
|
+ LSM_TABLE()
|
|
|
|
|
|
#define INIT_TEXT \
|
|
|
*(.init.text .init.text.*) \
|
|
@@ -786,17 +796,6 @@
|
|
|
KEEP(*(.con_initcall.init)) \
|
|
|
__con_initcall_end = .;
|
|
|
|
|
|
-#define SECURITY_INITCALL \
|
|
|
- __start_lsm_info = .; \
|
|
|
- KEEP(*(.lsm_info.init)) \
|
|
|
- __end_lsm_info = .;
|
|
|
-
|
|
|
-/* Older linker script style for security init. */
|
|
|
-#define SECURITY_INIT \
|
|
|
- .lsm_info.init : AT(ADDR(.lsm_info.init) - LOAD_OFFSET) { \
|
|
|
- LSM_INFO \
|
|
|
- }
|
|
|
-
|
|
|
#ifdef CONFIG_BLK_DEV_INITRD
|
|
|
#define INIT_RAM_FS \
|
|
|
. = ALIGN(4); \
|
|
@@ -963,7 +962,6 @@
|
|
|
INIT_SETUP(initsetup_align) \
|
|
|
INIT_CALLS \
|
|
|
CON_INITCALL \
|
|
|
- SECURITY_INITCALL \
|
|
|
INIT_RAM_FS \
|
|
|
}
|
|
|
|