Final updates for upx 1.92.

committer: mfx <mfx> 1090281040 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2004-07-19 23:50:40 +00:00
parent 95021e4977
commit 814eabb88e
4 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ const int *PackVmlinuxI386::getFilters() const
}
static int __acc_cdecl_qsort
compare_Phdr(void const *const aa, void const *const bb)
compare_Phdr(void const *aa, void const *bb)
{
Elf_LE32_Phdr const *const a = (Elf_LE32_Phdr const *)aa;
Elf_LE32_Phdr const *const b = (Elf_LE32_Phdr const *)bb;
@@ -140,7 +140,7 @@ bool PackVmlinuxI386::canPack()
return false;
}
if (0 < j) {
unsigned const sz = -phdri[j-1].p_align
unsigned const sz = (0u - phdri[j-1].p_align)
& (phdri[j-1].p_align -1 + phdri[j-1].p_filesz);
if ((sz + phdri[j-1].p_offset)!=phdri[j].p_offset) {
return false;