Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753558AbeAKENC (ORCPT + 1 other); Wed, 10 Jan 2018 23:13:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42520 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752922AbeAKENB (ORCPT ); Wed, 10 Jan 2018 23:13:01 -0500 Date: Wed, 10 Jan 2018 22:13:00 -0600 From: Josh Poimboeuf To: Markus Cc: Greg Kroah-Hartman , lkml , Ingo Molnar Subject: Re: objtool segfault with ORC unwinder enabled Message-ID: <20180111041300.tr57lsn7c54ggx7c@treble> References: <1537667.mbZVOcHbLR@markus> <20180104173203.zgy3g36wgaoeuii7@treble> <2483025.gTNvebosN7@markus> <6019408.f4ZjTQluLH@markus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6019408.f4ZjTQluLH@markus> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 11 Jan 2018 04:13:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 10, 2018 at 06:14:56PM +0100, Markus wrote: > On Thursday, 4 January 2018 19:25:12 CET Markus wrote: > > On Thursday, 4 January 2018 18:32:03 CET Josh Poimboeuf wrote: > > > On Thu, Jan 04, 2018 at 05:56:30PM +0100, Markus wrote: > > > > On Thursday, 4 January 2018 16:46:13 CET Josh Poimboeuf wrote: > > > > > I don't see anything unusual there. Are there any Gentoo patches > > > > > against either the kernel or GCC which would strip unused symbols? > > > > > > > > The kernel is the vanilla kernel. (4.14.11 and also 4.15-rc6) > > > > Its not a gentoo specific gcc patch. (Then every gentoo user would be > > > > affected?) > > > > > > > > But I enabled ld.gold as default linker like 5 years ago. Never had a > > > > problem with this. > > > > > > > > Is ld.gold supposed to fail here? > > > > > > > > I switched back to ld.bfd and it seems to work. > > > > > > Ah, that explains it. With CONFIG_MODVERSIONS, the linker does some > > > work after gcc, but before objtool. Can you try this patch? (Note this > > > isn't the final patch, as this breaks the CONFIG_MODVERSIONS=n case.) > > Any more final patch I should test? Sorry, this fell off my radar. I'll try to get a final patch soon. (But feel free to keep bugging me if I don't!) -- Josh