ARM: decompressor: Include .data.rel.ro.local
authorKees Cook <keescook@chromium.org>
Wed, 7 Sep 2022 22:41:03 +0000 (15:41 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 22 Sep 2022 03:16:14 +0000 (20:16 -0700)
commit1b64daf413acd86c2c13f5443f6b4ef3690c8061
tree252ac4fdd70b1bb49d62845bef1554b7ec00055e
parent06c1c49d0cd1d6cec5b78963109ba728e49e0063
ARM: decompressor: Include .data.rel.ro.local

The .data.rel.ro.local section has the same semantics as .data.rel.ro
here, so include it in the .rodata section of the decompressor.
Additionally since the .printk_index section isn't usable outside of
the core kernel, discard it in the decompressor. Avoids these warnings:

arm-linux-gnueabi-ld: warning: orphan section `.data.rel.ro.local' from `arch/arm/boot/compressed/fdt_rw.o' being placed in section `.data.rel.ro.local'
arm-linux-gnueabi-ld: warning: orphan section `.printk_index' from `arch/arm/boot/compressed/fdt_rw.o' being placed in section `.printk_index'

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/linux-mm/202209080545.qMIVj7YM-lkp@intel.com
Cc: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Kees Cook <keescook@chromium.org>
arch/arm/boot/compressed/vmlinux.lds.S