fix updating of DT_INIT

modified:   p_lx_elf.cpp
This commit is contained in:
John Reiser 2018-01-20 09:48:28 -08:00
parent 08c63f06eb
commit fc9c8ae482

View File

@ -573,7 +573,7 @@ off_t PackLinuxElf64::pack3(OutputFile *fo, Filter &ft)
for (int j2 = len; j2 > 0; ++dyn, j2 -= sizeof(*dyn)) {
if (dyn->DT_INIT==get_te64(&dyn->d_tag)) {
unsigned const t = (unsigned char *)&dyn->d_val -
(unsigned char *)ibuf;
(unsigned char *)&file_image[ioff];
off_init += t;
break;
}