Author: emaste
Date: Wed Aug  1 15:55:14 2018
New Revision: 337045
URL: https://svnweb.freebsd.org/changeset/base/337045

Log:
  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

Modified:
  head/contrib/elftoolchain/libelf/elf_update.c

Modified: head/contrib/elftoolchain/libelf/elf_update.c
==============================================================================
--- head/contrib/elftoolchain/libelf/elf_update.c       Wed Aug  1 15:50:42 
2018        (r337044)
+++ head/contrib/elftoolchain/libelf/elf_update.c       Wed Aug  1 15:55:14 
2018        (r337045)
@@ -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);
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to