]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitc353c2115682b41c86eb494d80ce401167bc124f
treeb79988b57b5e8f9997d379fec36c6db0d48c60a0
parent78ca73e0090717c5708bcd2dde3c5dc054bba806
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