From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14847 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Oppenlander Newsgroups: gmane.linux.lib.musl.general Subject: Re: another armv7-m exception handling problem Date: Mon, 21 Oct 2019 16:51:20 +1100 Message-ID: References: <20191021050411.GE16318@brightrain.aerifal.cx> <20191021052005.GF16318@brightrain.aerifal.cx> <20191021053829.GG16318@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="90499"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14863-gllmg-musl=m.gmane.org@lists.openwall.com Mon Oct 21 07:51:45 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 1iMQbZ-000NSo-JR for gllmg-musl@m.gmane.org; Mon, 21 Oct 2019 07:51:45 +0200 Original-Received: (qmail 15624 invoked by uid 550); 21 Oct 2019 05:51:43 -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 15603 invoked from network); 21 Oct 2019 05:51:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=KX9xqqGSslQ/if4YPgbzBFJIOuy2hsrEQx4IMIxIFls=; b=SKjBwPxuhoxKVAyDBhCVXHif10dZaR6macWmMNHoEXwEGA9TdrHZifMBoA+386Ok4U FKM4MPYlwyy+RqIgc8zOeLBu7rDUb6Nvxr4QwtEqiruNjfzbB0Tw7mtqQtX32PatxuCD EJHcMoZlYzxN+T0EGc8gUUYnK1SUTLhL1l96BK96vDX1Szai6V7fBU4hlFT7SeW42i0Y J1kdj63wng9HqwRfaAoh6Jn0qkNxzHhyRPMjC4i1LU+Hxal3o48KQmalHqGnlKioMO8r 7xN016jG7B+tKHrcuOkIiP2g7k4jXGXLPPWRswUHIACrmrJ9arlk2DfySBjrVWuMnAvb Ma8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=KX9xqqGSslQ/if4YPgbzBFJIOuy2hsrEQx4IMIxIFls=; b=Oilr6ROGDM29Fa9Hw392SlZxK2Q2dDWHpIWBKkN0qEWv1AHud8LW84IZiskqgTCtBZ gcBddoIcL5cy1BJNwlxOqudQtf3kYKPadUctDnJE/5iErnztDAs4DGUpyr6ni7s99SA7 xfWczdZDlZ/kB/bblCMvkkLSwLWenj9teDEM2czA3bdchj7TdGG18FZVgiaufkdNdjSF 7Zt77LRJWqgVUWkHdGOzV4MdjPRHiVOMwcDdDfzMqrjgXdfH1nE237AOyJJTNfUyNW2L k9Ki5wva7L1FFkAPO1iFnYhML1oRJyfVxT89x5zVBJEzqHU7fdzqkJT33HqueHeT7nOD OWaQ== X-Gm-Message-State: APjAAAVMe1L2Kwown7M4GE9UwN/TCvi1hbQu9m7jP1hbelgbFrwwV5Tx mADNJaKaffv1ESU6MIw05bREgW3STM4/YBQ0CAGc0CyT X-Google-Smtp-Source: APXvYqwoHWGwKNFFY/xvx7g4Jpb5vZMyDlEeWwJGeg0fGCnSlpRxO6/nfH1xYbB3eswN0Btk1qUzhI0LQ+CiFvAfTG4= X-Received: by 2002:a2e:8893:: with SMTP id k19mr13467429lji.5.1571637091035; Sun, 20 Oct 2019 22:51:31 -0700 (PDT) In-Reply-To: <20191021053829.GG16318@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:14847 Archived-At: On Mon, Oct 21, 2019 at 4:38 PM Rich Felker wrote: > > On Mon, Oct 21, 2019 at 04:34:07PM +1100, Patrick Oppenlander wrote: > > On Mon, Oct 21, 2019 at 4:20 PM Rich Felker wrote: > > > > > > On Mon, Oct 21, 2019 at 01:04:11AM -0400, Rich Felker wrote: > > > > > > > > OK, this is almost surely a bug in the tooling -- a weak reference has > > > > to use a GOT slot in PIC since it might be undefined and need to > > > > evaluate to 0, and the GOT slot should not have a relocation on it if > > > > it ends up evaluating to 0. Pretty sure it's ld's fault. > > > > Makes sense. Should I report to the binutils guys? > > I think so, but it would probably be worth determining whether it's > arm-specific or more general first so that the report gets to the > right ppl. I can try it on some other archs tomorrow. Here's the ones I have on hand: % aarch64-linux-musleabi-gcc -static weakref2.c -o aarch64 % arm-linux-musleabi-gcc -static weakref2.c -o arm % armv7m-linux-musleabi-gcc -static weakref2.c -o armv7m % x86_64-linux-musl-gcc -static weakref2.c -o x86_64 % ./aarch64 0 % ./arm 0 % ./armv7m 0xfffdb000 % ./x86_64 0 End of day for me too. Patrick