rockchip: make_fit_atf: ignore empty PT_LOAD segment
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 15 Sep 2020 01:43:29 +0000 (03:43 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 16 Sep 2020 08:41:30 +0000 (16:41 +0800)
commit5b861eea7927da63f016b75265e454a19ab19d0b
treeb79988b57b5e8f9997d379fec36c6db0d48c60a0
parent454b792afeeca1294a780590199e9250b5c9aa64
rockchip: make_fit_atf: ignore empty PT_LOAD segment

The linker sometimes creates PT_LOAD segments with length (p_filesz) zero
as described in https://man7.org/linux/man-pages/man5/elf.5.html. This
leads to build failures. We should ignore empty segments.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/make_fit_atf.py