From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14850 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: another armv7-m exception handling problem Date: Mon, 21 Oct 2019 15:03:18 -0400 Message-ID: <20191021190318.GI16318@brightrain.aerifal.cx> References: <20191021180956.GQ7832@port70.net> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="269332"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-14866-gllmg-musl=m.gmane.org@lists.openwall.com Mon Oct 21 21:03:40 2019 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.89) (envelope-from ) id 1iMcxv-0017w3-KC for gllmg-musl@m.gmane.org; Mon, 21 Oct 2019 21:03:39 +0200 Original-Received: (qmail 11841 invoked by uid 550); 21 Oct 2019 19:03:37 -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 11820 invoked from network); 21 Oct 2019 19:03:36 -0000 Content-Disposition: inline In-Reply-To: <20191021180956.GQ7832@port70.net> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14850 Archived-At: On Mon, Oct 21, 2019 at 08:09:56PM +0200, Szabolcs Nagy wrote: > * Patrick Oppenlander [2019-10-21 15:43:40 +1100]: > > Not sure if this is a musl, gcc or ld bug. > > > > Running gcc-8.3.0 musl 1.1.24 static pie. > > providing binutils version number is useful if there is > a chance that it's an ld bug. > > this seems to be > https://sourceware.org/bugzilla/show_bug.cgi?id=22269 > > which was supposed to be fixed by > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=95b03e4ad68e7a90f5096b47df595636344b783a > > but apperently there are still missing cases. > (it does not help that the ld test for this bug > greps for R_*_NONE dynrelocs but not R_*_RELATIVE > which i is just as bad for undef weak syms in pie) > i added a note to the bug. > > if you add __attribute__((visibility("hidden"))) > to the example given by Rich then it works, the > bug only affects static pie linking. That's really weird. How does it end up having an outstanding *relative* relocation when it's not defined locally? I could understand having a bogus outstanding symbolic one, but relative makes no sense and suggests ld is doing something very wrong... Rich