Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: add NOTES section to the linker script

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>

+2 -1
+1 -1
arch/xtensa/boot/Makefile
··· 33 33 boot-elf boot-redboot: $(addprefix $(obj)/,$(subdir-y)) 34 34 $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS) 35 35 36 - OBJCOPYFLAGS = --strip-all -R .comment -R .note.gnu.build-id -O binary 36 + OBJCOPYFLAGS = --strip-all -R .comment -R .notes -O binary 37 37 38 38 vmlinux.bin: vmlinux FORCE 39 39 $(call if_changed,objcopy)
+1
arch/xtensa/kernel/vmlinux.lds.S
··· 131 131 .fixup : { *(.fixup) } 132 132 133 133 EXCEPTION_TABLE(16) 134 + NOTES 134 135 /* Data section */ 135 136 136 137 _sdata = .;