Date: Mon, 15 Dec 2014 18:19:07 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 195653] elftoolchain strip(1) sometimes corrupts a segment's phdr p_memsz Message-ID: <bug-195653-8-2LDE3Ri6G0@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-195653-8@https.bugs.freebsd.org/bugzilla/> References: <bug-195653-8@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=195653 --- Comment #2 from commit-hook@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195653-8-2LDE3Ri6G0>