mirror of https://github.com/OpenIPC/firmware.git
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
diff -drupN a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
|
|
--- a/arch/arm64/kernel/vmlinux.lds.S 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/arch/arm64/kernel/vmlinux.lds.S 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -60,7 +60,7 @@ jiffies = jiffies_64;
|
|
#define TRAMP_TEXT \
|
|
. = ALIGN(PAGE_SIZE); \
|
|
VMLINUX_SYMBOL(__entry_tramp_text_start) = .; \
|
|
- *(.entry.tramp.text) \
|
|
+ KEEP(*(.entry.tramp.text)) \
|
|
. = ALIGN(PAGE_SIZE); \
|
|
VMLINUX_SYMBOL(__entry_tramp_text_end) = .;
|
|
#else
|
|
@@ -179,11 +179,11 @@ SECTIONS
|
|
. = ALIGN(4);
|
|
.altinstructions : {
|
|
__alt_instructions = .;
|
|
- *(.altinstructions)
|
|
+ KEEP(*(.altinstructions))
|
|
__alt_instructions_end = .;
|
|
}
|
|
.altinstr_replacement : {
|
|
- *(.altinstr_replacement)
|
|
+ KEEP(*(.altinstr_replacement))
|
|
}
|
|
.rela : ALIGN(8) {
|
|
*(.rela .rela*)
|
|
@@ -228,6 +228,11 @@ SECTIONS
|
|
swapper_pg_dir = .;
|
|
. += SWAPPER_DIR_SIZE;
|
|
|
|
+#ifdef CONFIG_ARM64_SW_TTBR0_PAN
|
|
+ reserved_ttbr0 = .;
|
|
+ . += RESERVED_TTBR0_SIZE;
|
|
+#endif
|
|
+
|
|
#ifdef CONFIG_UNMAP_KERNEL_AT_EL0
|
|
tramp_pg_dir = .;
|
|
. += PAGE_SIZE;
|