[PATCH] arm64: Change the location of DISCARDS

Will Deacon will at kernel.org
Thu Nov 5 16:47:38 EST 2020


On Wed, Nov 04, 2020 at 06:48:52PM +0800, Youling Tang wrote:
> In the include/asm-generic/vmlinux.lds.h file, the "must be the last"
> comment indicates that DISCARDS should be placed in the last position
> of SECTIONS, like x86, mips, riscv, etc.
> 
> Signed-off-by: Youling Tang <tangyouling at loongson.cn>
> ---
>  arch/arm64/kernel/vmlinux.lds.S | 13 +++++++------
>  1 file changed, 7 insertions(+), 6 deletions(-)

Why does this section need to be last?

Will



More information about the linux-arm-kernel mailing list