fix sh_offset for new Shdr[e_shstrndx]
modified: p_lx_elf.cpp
This commit is contained in:
+1
-1
@@ -3044,7 +3044,7 @@ void PackLinuxElf64::pack1(OutputFile *fo, Filter & /*ft*/)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// shstrndx will move
|
// 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);
|
len_notes + e_shnum * sizeof(Elf64_Shdr) + xct_off);
|
||||||
|
|
||||||
// New copy of Shdr
|
// New copy of Shdr
|
||||||
|
|||||||
Reference in New Issue
Block a user