MIPS: zboot: put appended dtb into a section
authorChuanhong Guo <gch981213@gmail.com>
Mon, 26 Oct 2020 12:29:25 +0000 (20:29 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 6 Nov 2020 10:28:16 +0000 (11:28 +0100)
commitd2e850e961835825492f37346ae76670bf4758f5
tree622f2e81abcf0468efcaa51b36cd021ba126b4c9
parentab7cffb8d2367e5b088c7c14452724e719a10eba
MIPS: zboot: put appended dtb into a section

This will make a separated section for dtb appear in ELF, and we can
then use objcopy to patch a dtb into vmlinuz when RAW_APPENDED_DTB
is set in kernel config.

command to patch a dtb:
objcopy --set-section-flags=.appended_dtb=alloc,contents \
        --update-section=.appended_dtb=<target>.dtb vmlinuz

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/compressed/ld.script