From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13065 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: Segmentation fault in static binaries built with recent binutils Date: Wed, 18 Jul 2018 23:37:22 +0200 Message-ID: <20180718213721.GP4418@port70.net> References: <20180718163940.gnx6jkia4i5qdjua@reiner-h.de> <20180718181438.nl4e333zkzw36rzl@reiner-h.de> <20180718190024.GL4418@port70.net> <20180718193833.GM4418@port70.net> <20180718201928.GN4418@port70.net> <20180718205320.tsud6pgbxjkdrwrw@reiner-h.de> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1531949730 23790 195.159.176.226 (18 Jul 2018 21:35:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2018 21:35:30 +0000 (UTC) User-Agent: Mutt/1.9.1 (2017-09-22) To: musl@lists.openwall.com Original-X-From: musl-return-13081-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 18 23:35:25 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ffu6X-00067t-KD for gllmg-musl@m.gmane.org; Wed, 18 Jul 2018 23:35:25 +0200 Original-Received: (qmail 11461 invoked by uid 550); 18 Jul 2018 21:37:34 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11440 invoked from network); 18 Jul 2018 21:37:33 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20180718205320.tsud6pgbxjkdrwrw@reiner-h.de> Xref: news.gmane.org gmane.linux.lib.musl.general:13065 Archived-At: * Reiner Herrmann [2018-07-18 22:53:20 +0200]: > On Wed, Jul 18, 2018 at 10:19:28PM +0200, Szabolcs Nagy wrote: > > the difference between the two cases was --build-id > > > > --build-id=sha1 works, --build-id=none segfaults > > > > i assume the note section with the build id happens > > to force ld to keep the initial load segment, but > > that should be there without any note section, so > > it's likely a binutils bug (i see it on 2.30 and > > master branch too) > > Do you mean you see the bug on 2.30, or the initial load segment? > Because with 2.30 it's working for me (the initial load segment is there). > > Thanks for your investigation and the suggested workaround! > i opened https://sourceware.org/bugzilla/show_bug.cgi?id=23428 i see the same behaviour on debian sid with $ ld --version GNU ld (GNU Binutils for Debian) 2.30.90.20180710 Copyright (C) 2018 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. i haven't bisected the issue but i suspect both 2.30 and 2.31 branches are affected by some recent change (but not the initial 2.30 release).