From 2621d4912f40e250b845fe1977b1ee7f55cd162b Mon Sep 17 00:00:00 2001 From: Sami Tolvanen Date: Tue, 13 Feb 2018 14:00:14 -0800 Subject: [PATCH] ANDROID: arm64: fix LD_DEAD_CODE_DATA_ELIMINATION Keep .entry.tramp.text to avoid the "Entry trampoline text too big" error while linking. Bug: 62093296 Bug: 67506682 Change-Id: Idab3216244bd2f8537bb2a5bb47e25e8588394da Signed-off-by: Sami Tolvanen --- arch/arm64/kernel/vmlinux.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index ddfd3c0942f7..e9ad6914a4fb 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S @@ -61,7 +61,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 -- 2.20.1