From: Youling Tang Date: Thu, 19 Nov 2020 01:45:40 +0000 (+0800) Subject: arm64: vmlinux.lds.S: Drop redundant *.init.rodata.* X-Git-Tag: v5.15~2121^2~7^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=344f2db2a18af45faafce13133c84c4f076876a6;p=platform%2Fkernel%2Flinux-starfive.git arm64: vmlinux.lds.S: Drop redundant *.init.rodata.* We currently try to emit *.init.rodata.* twice, once in INIT_DATA, and once in the line immediately following it. As the two section definitions are identical, the latter is redundant and can be dropped. This patch drops the redundant *.init.rodata.* section definition. Signed-off-by: Youling Tang Acked-by: Will Deacon Link: https://lore.kernel.org/r/1605750340-910-1-git-send-email-tangyouling@loongson.cn Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index 30c1029..746afbc 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S @@ -199,7 +199,7 @@ SECTIONS INIT_CALLS CON_INITCALL INIT_RAM_FS - *(.init.rodata.* .init.bss) /* from the EFI stub */ + *(.init.bss) /* from the EFI stub */ } .exit.data : { EXIT_DATA