libelf: reload section headers after update with ELF_C_WRITE
These issues (PR 218860 and PR 218861) are still undergoing additional discussion in the upstream context and there may be additional changes to come. PR: 218860 Submitted by: Eric McCorkle MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D10486
This commit is contained in:
parent
8a5efe3601
commit
bd6313b66e
@ -1212,5 +1212,6 @@ elf_update(Elf *e, Elf_Cmd c)
|
|||||||
|
|
||||||
done:
|
done:
|
||||||
_libelf_release_extents(&extents);
|
_libelf_release_extents(&extents);
|
||||||
|
e->e_flags &= ~LIBELF_F_SHDRS_LOADED;
|
||||||
return (rc);
|
return (rc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user