mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Hint when need DT_INIT for shared library
https://github.com/upx/upx/issues/74 modified: p_lx_elf.cpp
This commit is contained in:
parent
0aa3b9c487
commit
0e154cc759
|
@ -1600,7 +1600,7 @@ bool PackLinuxElf32::canPack()
|
|||
goto proceed; // But proper packing depends on checking xct_va.
|
||||
}
|
||||
else
|
||||
infoWarning("no DT_INIT or JNI_OnLoad: %s", fi->getName());
|
||||
throwCantPack("need DT_INIT; try \"void _init(void){}\"");
|
||||
abandon:
|
||||
return false;
|
||||
proceed: ;
|
||||
|
@ -1792,6 +1792,8 @@ PackLinuxElf64ppcle::canPack()
|
|||
xct_off = elf_get_offset_from_address(xct_va);
|
||||
goto proceed; // But proper packing depends on checking xct_va.
|
||||
}
|
||||
else
|
||||
throwCantPack("need DT_INIT; try \"void _init(void){}\"");
|
||||
abandon:
|
||||
return false;
|
||||
proceed: ;
|
||||
|
@ -1984,6 +1986,8 @@ PackLinuxElf64amd::canPack()
|
|||
xct_off = elf_get_offset_from_address(xct_va);
|
||||
goto proceed; // But proper packing depends on checking xct_va.
|
||||
}
|
||||
else
|
||||
throwCantPack("need DT_INIT; try \"void _init(void){}\"");
|
||||
abandon:
|
||||
return false;
|
||||
proceed: ;
|
||||
|
|
Loading…
Reference in New Issue
Block a user