From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14845 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:34:07 +1100 Message-ID: References: <20191021050411.GE16318@brightrain.aerifal.cx> <20191021052005.GF16318@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="22598"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14861-gllmg-musl=m.gmane.org@lists.openwall.com Mon Oct 21 07:34:33 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 1iMQKu-0005nS-UM for gllmg-musl@m.gmane.org; Mon, 21 Oct 2019 07:34:33 +0200 Original-Received: (qmail 5680 invoked by uid 550); 21 Oct 2019 05:34:30 -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 5659 invoked from network); 21 Oct 2019 05:34:30 -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=kAUp4vubz5pHesMp7suTfsfeXaAVd3o/p9empaIFdKM=; b=FKpq+HgrDMWrdpEyNvmNWu6Ke+RAOJ7+C7CWZuYEsw5H0Ghmd/XvDNJ/VvatHOS0aV DLAnac0XHkupH+4814tX8bo2D+7oGObRrYKOQMPQw5SvTuBPDhYoawvAvf9bfsi3595u 7pnFXSiw8oev9gj27UiEjph2WRBHUO1AstUZJ3O6ZJvGCsEnpJhzxGNx9A2w04KDiqFs bB9E4Ly5O1AQ87hXm4tQuMmdLQAbATfhtAEFI4eaDv/bjzWxOfdswXp5EzbZV4eGpGSX HpXDr7K7xTeq+dqMRVDzHUEm4V9r/bF3MCYQsk0Q4hIIcV/vHv8Yzt1qdpAD58MwCoFz J15g== 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=kAUp4vubz5pHesMp7suTfsfeXaAVd3o/p9empaIFdKM=; b=HEnyIikszCT9eEx4Hl63f3j4M4JAhGKZ9Lhm7j+TxngI9V/Z5HgGpPhdxfrYps57JA Wna2qFDk7rKGbXBHK/TUkU4lKrD1+kXL0fzy5PzekbIO4BtLzJvhXFIJIo0IV9M5EK0y hhUxGZQYezsso7yUnUzsSCXK9sc9Uz1XIbVq9vr3ENi+u6oBadsrb233Bt+6KtpVXqM3 A0mWsn4jXUvFMVURiYrZxTSbHeluKKZ3Y7jr1opDK8ZUGYlsvn5td9wSK0Em/7OTTtzz j3cYMS6w+xnoXgJigila2IshbIkxIEX6+fK8nTUgyKNusKvezki1QpVQOpqgGGKI+uIm c5Qg== X-Gm-Message-State: APjAAAVnlUKcuIK8rcOHum2tf8soH4Jvg2f8ghh1aVJ3cZ6HVYLh/mmz uo6wu19WY8NyS5OtTFyHXHg6AU+1EeH9Y73VItXmKw== X-Google-Smtp-Source: APXvYqzUudvsw2eU9ANh7TiKUPCgtCGk+U+VjWzzqmfc6k3rh3fsW+pKRTxN7cvCbuoeNw3XSqXDK3uS0JkRTBIwSbQ= X-Received: by 2002:a2e:a41a:: with SMTP id p26mr13998134ljn.49.1571636058778; Sun, 20 Oct 2019 22:34:18 -0700 (PDT) In-Reply-To: <20191021052005.GF16318@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:14845 Archived-At: 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 can reproduce it with the attached trivial GNU C program. > That's certainly easier to debug than my example! Patrick