[Bug 195653] elftoolchain strip(1) sometimes corrupts a segment's phdr p_memsz

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 15 18:19:07 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195653

--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:

Author: emaste
Date: Mon Dec 15 18:18:58 UTC 2014
New revision: 275810
URL: https://svnweb.freebsd.org/changeset/base/275810

Log:
  Correct elftoolchain strip(1) memory size calculation

  Calculate the segment's memory size (p_memsz) using the virtual
  addresses, not the file offsets. Otherwise padding preceeding SHT_NOBITS
  sections may be excluded from the calculation, resulting in a segment
  that is too small.

  PR:        195653
  Sponsored by:    The FreeBSD Foundation

Changes:
  head/contrib/elftoolchain/elfcopy/segments.c

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


More information about the freebsd-bugs mailing list