riscv: vmlinux-xip.lds.S: remove .alternative section
authorJisheng Zhang <jszhang@kernel.org>
Tue, 23 May 2023 16:55:00 +0000 (00:55 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Sun, 25 Jun 2023 23:24:03 +0000 (16:24 -0700)
commitcead443a306262a16056d84d63b5a6a10908eb62
tree45041b05462e5010eed77f0679f802d4cbd18fe8
parentab7fa6b05ebbe2a8cc07114014f14fd2326fb80a
riscv: vmlinux-xip.lds.S: remove .alternative section

ALTERNATIVE mechanism can't work on XIP, and this is also reflected by
below Kconfig dependency:

RISCV_ALTERNATIVE
...
depends on !XIP_KERNEL
...

So there's no .alternative section at all for XIP case, remove it.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com> # build
Link: https://lore.kernel.org/r/20230523165502.2592-3-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/vmlinux-xip.lds.S