Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2018 15:19:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 232176] elftoolchain elfcopy/strip incorrectly strips relocations
Message-ID:  <bug-232176-227-P6Bw9JavLp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-232176-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-232176-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232176

--- Comment #7 from commit-hook@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Thu Oct 25 15:18:54 UTC 2018
New revision: 339726
URL: https://svnweb.freebsd.org/changeset/base/339726

Log:
  MFC r339451: objcopy: restore behaviour required by GCC's build

  In r339350 filter_reloc() was removed, to fix the case of stripping
  statically linked binaries with relocations (which may come from ifunc
  use, for example).  As a side effect this changed the behaviour when
  stripping object files - the output was broken both before and after
  r339350, in different ways.  Unfortunately GCC's build process relies
  on the previous behaviour, so:

  - Revert r339350, restoring filter_reloc().
  - Fix an unitialized variable use (commited as r3638 in ELF Tool Chain).
  - Change filter_reloc() to omit relocations referencing removed
    symbols, while retaining relocations with no symbol reference.
  - Retain the entire relocation section if it references the dynamic
    symbol table (fix from kaiw in D17596).

  PR:           232176
  Approved by:  re (gjb, kib)
  Sponsored by: The FreeBSD Foundation

Changes:
_U  stable/12/
  stable/12/contrib/elftoolchain/elfcopy/sections.c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232176-227-P6Bw9JavLp>