From 857a03a0748c1d119c0f6a3be36275079b440aaa Mon Sep 17 00:00:00 2001 From: John Reiser Date: Sat, 20 Jan 2018 16:41:32 -0800 Subject: [PATCH] fix sh_offset for new Shdr[e_shstrndx] modified: p_lx_elf.cpp --- src/p_lx_elf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index aeb826e6..1d0c30b2 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -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