Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Aug 2018 15:55:15 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337045 - head/contrib/elftoolchain/libelf
Message-ID:  <201808011555.w71FtFKp033501@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808011555.w71FtFKp033501>