fix sh_offset for new Shdr[e_shstrndx]
modified: p_lx_elf.cpp
This commit is contained in:
parent
a34deee4f5
commit
857a03a074
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user