Avoid warnings when building for m68k.

committer: mfx <mfx> 1144523702 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2006-04-08 19:15:02 +00:00
parent edc7994ce5
commit 08c0796719
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ PackLinuxI386sh::buildLoader(Filter const *ft)
optimizeFilter(&fold_ft, buf, sz_fold);
unsigned fold_hdrlen = sizeof(l_info) + sizeof(Elf32_Ehdr) +
sizeof(Elf32_Phdr) * get_native32(&((Elf32_Ehdr const *)(void *)buf)->e_phnum);
if (0==*(int *)(fold_hdrlen + buf)) {
if (0 == get_le32(fold_hdrlen + buf)) {
// inconsistent SIZEOF_HEADERS in *.lds (ld, binutils)
fold_hdrlen = umax(0x80, fold_hdrlen);
}