Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2018 17:29:24 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r338411 - stable/11/contrib/elftoolchain/libelf
Message-ID:  <201808311729.w7VHTOl6023962@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Aug 31 17:29:24 2018
New Revision: 338411
URL: https://svnweb.freebsd.org/changeset/base/338411

Log:
  MFC r337045: 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
  Sponsored by:	The FreeBSD Foundation (MFC)

Modified:
  stable/11/contrib/elftoolchain/libelf/elf_update.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/elftoolchain/libelf/elf_update.c
==============================================================================
--- stable/11/contrib/elftoolchain/libelf/elf_update.c	Fri Aug 31 16:29:36 2018	(r338410)
+++ stable/11/contrib/elftoolchain/libelf/elf_update.c	Fri Aug 31 17:29:24 2018	(r338411)
@@ -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?201808311729.w7VHTOl6023962>