f5c2f79706
commit 4d4f9c1a17a3480f8fe523673f7232b254d724b7 upstream.
The compressed payload is not necesarily 4-byte aligned, at least when
compiling with Clang. In that case, the 4-byte value appended to the
compressed payload that corresponds to the uncompressed kernel image
size must be read using get_unaligned_le32().
This fixes Clang-built kernels not booting on MIPS (tested on a Ingenic
JZ4770 board).
Fixes:
|
||
---|---|---|
.. | ||
compressed | ||
dts | ||
tools | ||
.gitignore | ||
Makefile | ||
ecoff.h | ||
elf2ecoff.c |