Suggest fix for missing DT_INIT in shared library.
modified: p_lx_elf.cpp
This commit is contained in:
+5
-1
@@ -1651,7 +1651,7 @@ bool PackLinuxElf32::canPack()
|
|||||||
goto proceed; // But proper packing depends on checking xct_va.
|
goto proceed; // But proper packing depends on checking xct_va.
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
infoWarning("no DT_INIT or JNI_OnLoad: %s", fi->getName());
|
throwCantPack("need DT_INIT; try \"void _init(void){}\"");
|
||||||
abandon:
|
abandon:
|
||||||
return false;
|
return false;
|
||||||
proceed: ;
|
proceed: ;
|
||||||
@@ -1843,6 +1843,8 @@ PackLinuxElf64ppcle::canPack()
|
|||||||
xct_off = elf_get_offset_from_address(xct_va);
|
xct_off = elf_get_offset_from_address(xct_va);
|
||||||
goto proceed; // But proper packing depends on checking xct_va.
|
goto proceed; // But proper packing depends on checking xct_va.
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
throwCantPack("need DT_INIT; try \"void _init(void){}\"");
|
||||||
abandon:
|
abandon:
|
||||||
return false;
|
return false;
|
||||||
proceed: ;
|
proceed: ;
|
||||||
@@ -2035,6 +2037,8 @@ PackLinuxElf64amd::canPack()
|
|||||||
xct_off = elf_get_offset_from_address(xct_va);
|
xct_off = elf_get_offset_from_address(xct_va);
|
||||||
goto proceed; // But proper packing depends on checking xct_va.
|
goto proceed; // But proper packing depends on checking xct_va.
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
throwCantPack("need DT_INIT; try \"void _init(void){}\"");
|
||||||
abandon:
|
abandon:
|
||||||
return false;
|
return false;
|
||||||
proceed: ;
|
proceed: ;
|
||||||
|
|||||||
Reference in New Issue
Block a user