From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13064 Path: news.gmane.org!.POSTED!not-for-mail From: Reiner Herrmann Newsgroups: gmane.linux.lib.musl.general Subject: Re: Segmentation fault in static binaries built with recent binutils Date: Wed, 18 Jul 2018 22:53:20 +0200 Message-ID: <20180718205320.tsud6pgbxjkdrwrw@reiner-h.de> References: <20180718163940.gnx6jkia4i5qdjua@reiner-h.de> <20180718181438.nl4e333zkzw36rzl@reiner-h.de> <20180718190024.GL4418@port70.net> <20180718193833.GM4418@port70.net> <20180718201928.GN4418@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zex3uyjnwuuqcqaj" X-Trace: blaine.gmane.org 1531947095 3960 195.159.176.226 (18 Jul 2018 20:51:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2018 20:51:35 +0000 (UTC) User-Agent: NeoMutt/20170113 (1.7.2) To: musl@lists.openwall.com Original-X-From: musl-return-13080-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 18 22:51:31 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 1fftQ3-0000ug-7z for gllmg-musl@m.gmane.org; Wed, 18 Jul 2018 22:51:31 +0200 Original-Received: (qmail 7952 invoked by uid 550); 18 Jul 2018 20:53:40 -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 7917 invoked from network); 18 Jul 2018 20:53:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=reiner-h.de; s=mail; t=1531947204; bh=GJ1NbwW6PL/ra+dFdBrDWMK+5jWaaHVe+WflVN9ENFQ=; h=Date:From:To:Subject:References:In-Reply-To:From; b=NZqM2H5kfkbp0AqmWMXs2eKl7pkjD0+CcK730FBCiWhZCDR0gq7HOukCu80tgNPKS WfgOOlmTMljl2zjt1aChQSQJBzyPKYGCItxa+TNzXKL1fUha5RCj+jV/6Q9TGZNtL+ fNYEGeMe1YpIV+9lTV3QRQPCtIK9wMuQ7Qa3S8G8= Content-Disposition: inline In-Reply-To: <20180718201928.GN4418@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:13064 Archived-At: --zex3uyjnwuuqcqaj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 18, 2018 at 10:19:28PM +0200, Szabolcs Nagy wrote: > the difference between the two cases was --build-id >=20 > --build-id=3Dsha1 works, --build-id=3Dnone segfaults >=20 > 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! Kind regards, Reiner --zex3uyjnwuuqcqaj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE2Pb6feok2Q1urHM7zPBJKNsO6qcFAltPqLgACgkQzPBJKNsO 6qecIxAAv6I2Hji78sEt3PvWZayaLzIJ2c2bVnMGBdAfIcuykwP7nOrvnIwzZm4t R/AyGq8lGskB6Ybe0DCPnWlHLEgch+Q8pXyOseq2oO0I/dYXeuE8e1pY/9EqAY7z GljTU0g1+IdpBsObmwvn7fGQUqe4XJT0Zn/sEV9pBLRzSF83rE0lcViHsOZoeZYK dV93fa5mwYUX1zm/6rwcP0uFSnY6yPAtXisJFHpK261doCsA/GOvFqnnaEHMAsoc i1sv4EMUiTJSoQXblNS2ReQ/t5Rq1VUvy+gtoM4SfhDw8CqxIoXa56H50nxsDcGq BEXe0HtGY8w+p1Xn5zyPzPobZewqOj3IsZ+bCVckLrT7h/ZUyVUhlKrVaUVqvfaP nNGQhPR8K0KkASQagu6dVG7CABL04asguy7k9U2dp0Bii3EaRGDLY05u5/oYVA77 UDHfsuD6eTRiN40FUEl5VNMjvDwsJWS4rG2yh54gjMb/E3+BLTCmVS614F7KpqQA jQce0wKD+YopP0nsGrShZvK9Gq1QvSWsmXQJscggG9kDLimjuW4ertb22jnwWfOa QU5HgSj0KxiY4bcLIUWoxwp3FzDKGiE6rw+BCo46GJkia++6uiK+lO6bmSf1khqv sWfwYXJ2VN512yBacRez6c4HO11Pv/8GTX18DC3a/0LODn55Qwo= =hZdW -----END PGP SIGNATURE----- --zex3uyjnwuuqcqaj--