]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set up default shstrtab entries at shstrtab initialization
authoremaste <emaste@FreeBSD.org>
Mon, 22 Dec 2014 16:31:09 +0000 (16:31 +0000)
committeremaste <emaste@FreeBSD.org>
Mon, 22 Dec 2014 16:31:09 +0000 (16:31 +0000)
commit7740946485db08b2a4367192fe0ade8891fda5d8
treef94b759ee7a808a29b6a22c74cbb69e8e32a07aa
parent6e107d58e3237f5dcc1e263809d7ee7b9bde58fb
Set up default shstrtab entries at shstrtab initialization

Instead of waiting until the addition of the first non-default entry.
This fixes a segfault when strip(1) is asked to remove every section from
an object file.

Upstream elftoolchain ticket 463

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1341
contrib/elftoolchain/elfcopy/sections.c