[PATCH v1] lib: elf: Fix bootelf -p crash issue

Tom Rini trini at konsulko.com
Thu Aug 15 22:33:10 CEST 2024


On Wed, 07 Aug 2024 02:20:07 +0000, JianfengA.Zhu at sony.com wrote:

> Do not load and flush segments whose program header type is not
> PT_LOAD to avoid crash happen.
> 
> bootelf will load all program headers and then flush cache.
> Since PT_GNU_STACK start address is 0x0, crash happens when
> it flushes PT_GNU_STACK area for target that memory cannot be
> accessed from address 0x0.
> 
> [...]

Applied to u-boot/next, thanks!

-- 
Tom




More information about the U-Boot mailing list