svn commit: r337045 - head/contrib/elftoolchain/libelf

Ed Maste emaste at FreeBSD.org
Wed Aug 1 15:55:16 UTC 2018


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);
 }


More information about the svn-src-all mailing list