mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-04 13:07:46 +01:00
The envcrc.c does sizeof(unsigned long) when calculating the crc, but this is done with the build toolchain instead of the target tool chain, so if the build is a 64bit system but the target is 32bits, the size will obviously be wrong. This converts all unsigned long stuff related to crc32 to uint32_t types. Compile tested only: output of ./tools/envcrc when run on a 32bit build system matches that of a 64bit build system. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |
||
|---|---|---|
| .. | ||
| bzlib.c | ||
| bzlib_crctable.c | ||
| bzlib_decompress.c | ||
| bzlib_huffman.c | ||
| bzlib_private.h | ||
| bzlib_randtable.c | ||
| crc32.c | ||
| ctype.c | ||
| display_options.c | ||
| div64.c | ||
| ldiv.c | ||
| lmb.c | ||
| Makefile | ||
| md5.c | ||
| sha1.c | ||
| string.c | ||
| vsprintf.c | ||
| zlib.c | ||