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:
Ed Maste 2018-08-01 15:55:14 +00:00
parent 8a5efe3601
commit bd6313b66e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337045

View File

@ -1212,5 +1212,6 @@ elf_update(Elf *e, Elf_Cmd c)
done:
_libelf_release_extents(&extents);
e->e_flags &= ~LIBELF_F_SHDRS_LOADED;
return (rc);
}