OSDN Git Service

xtensa: add NOTES section to the linker script
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 30 Oct 2018 01:30:13 +0000 (18:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:19:16 +0000 (09:19 +0100)
commit47af963b58e5efc9330c426924f55a1475c4e366
treede89966cd63e842ab10f8ef03bdf7f5148ff826d
parent5d55ba0ffec1272940a616a562af9e37fcc05281
xtensa: add NOTES section to the linker script

commit 4119ba211bc4f1bf638f41e50b7a0f329f58aa16 upstream.

This section collects all source .note.* sections together in the
vmlinux image. Without it .note.Linux section may be placed at address
0, while the rest of the kernel is at its normal address, resulting in a
huge vmlinux.bin image that may not be linked into the xtensa Image.elf.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/boot/Makefile
arch/xtensa/kernel/vmlinux.lds.S