fix sh_offset for new Shdr[e_shstrndx]

modified:   p_lx_elf.cpp
This commit is contained in:
John Reiser 2018-01-20 16:41:32 -08:00
parent a34deee4f5
commit 857a03a074

View File

@ -3044,7 +3044,7 @@ void PackLinuxElf64::pack1(OutputFile *fo, Filter & /*ft*/)
}
}
// shstrndx will move
set_te64(&sec_strndx->sh_offset,
set_te64(&shdro[get_te16(&ehdri.e_shstrndx)].sh_offset,
len_notes + e_shnum * sizeof(Elf64_Shdr) + xct_off);
// New copy of Shdr