Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10465173rwd; Wed, 21 Jun 2023 23:49:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56kyowhtr1Ev66Op2uBz88crSr6XUsBl3D/U4QO28zm+wj5863xCjQNkiqJ83Rr8dsBTfW X-Received: by 2002:a05:6a20:2591:b0:123:828f:68d with SMTP id k17-20020a056a20259100b00123828f068dmr3710210pzd.13.1687416541590; Wed, 21 Jun 2023 23:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687416541; cv=none; d=google.com; s=arc-20160816; b=lOrb3YxqdFD8qMPfL5GzdMa22sKiTzuGr3naxxulPVP0TI6PuJD465F3OcUv0HffKp qNAu4iw6MB5uaQ/i5j21Y9lR8+iHkmKsFAEimSGVh2ujZjMZkvy0PggOuVQ+cYQkZuHY 7Z49Ri+iJJ9xP/SevI1rQImW5JSi15P1yIgpyMhuCwa3lDnnK2SkTmFFqxwXjWzNxhs+ 9ixgDr02h3vee50mf2V/J3yFlWKQyBTWIMf3h1ZjYFGv/6mRswG3kAIju6j7llUk2sQT AbktSE6n8oJAOo47m7n4mbB/paYFSbMM5rkgtu/b2j7tc/XaB/DPWnYS24Rj/bcrO08t 3eBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9N52Fn7r1OvHqrOsLf26fbPhQyoI4+8Ri8woDsufRp8=; b=RpN4My5COiv0qCu6qyNRIjryW1q3UZCv0vYZdoCLfVdmbuHCrksdznmA4MAh2R+9yi hBh6u/9vxDjKivxnIfr3XvKsWwZShG+nBGtQQ7sR6YUBhlikjE1DLqBGsjqYfx0TZCDt S9zIXSb5ZHG3RX8XKTj5EPtI3HEbn2bgv3YW8YgVF+wVWYOOrgeXHNehacZ8iNZiqK0m AakV1M2iijqc1V1qE927WKjTw9Ung+uCgEeCG10SCArRbWrZRtSbp28JK4O0BTRgsiVm sWbppgwz8Rf1qDC2jbg9TxKNuY53U644AURh3t2ja4/fYas70HKfKv6OXx3RN+ctpfku D6Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c4admOdf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020aa79883000000b0065d3032fa22si5494704pfl.289.2023.06.21.23.48.49; Wed, 21 Jun 2023 23:49:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c4admOdf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbjFVGbx (ORCPT + 99 others); Thu, 22 Jun 2023 02:31:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjFVGbv (ORCPT ); Thu, 22 Jun 2023 02:31:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75BB5FC for ; Wed, 21 Jun 2023 23:31:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0A63261772 for ; Thu, 22 Jun 2023 06:31:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D074C433C8; Thu, 22 Jun 2023 06:31:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687415509; bh=8I3kJ3yOV1l9VHYXSTomQCnY9vroIhrMd3w0kNO1mok=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c4admOdfTJlntgfqiYhEbR+hYmU1RQkqVn3vkCG8qxpgca6Vu3XNiT2wZaSMSJ8jc im7uujX9ssnfnP/0KagDOeLDuQmYKE/fcaVBCzVifC21TMCT4mdjp1CPA7oAwlscn9 0pmlZ8AZtu9DNJfaKHdyesgXuhkLkL6Ck4NVzYs+o5KfZVkp+RnJzr2OJYvAF9zrZ6 dlFkIdUEtlsuE1BfNHC9GavOTCKpnGTJxzhmS20EsBGyI1TyArcdPLTOwdJz373DV3 6TwWzxM2DEP6aXcBJUb7t/SWbAhWAhuA3MaZ33f6497ZobQKof4mmspk7ODUkw0vyd JOA5z/W9a5kbw== Date: Wed, 21 Jun 2023 23:31:47 -0700 From: Josh Poimboeuf To: Christophe Leroy Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] objtool: Make 'sec-address' always on Message-ID: <20230622063147.wpd4nxvludjjk2qa@treble> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 21, 2023 at 05:20:31PM +0200, Christophe Leroy wrote: > Most of the time objtool warnings are useless without the > absolute address within the section. > > Today there is --sec-address option to get it printed, but > that option is nowhere used and requires a change in Makefile > to use it. > > Having the address inside the section at all time in addition > to the address within the object doesn't hurt and will help. > > Remove the --sec-address option and print it at all time. This option actually feels like clutter to me. The func+offset format works fine, combined with scripts like objdump-func and faddr2line. And we also have a new OBJTOOL_VERBOSE=1 option which auto-disassembles the affected function. On x86 we've been using func+offset for console stack traces for many years, due to KASLR. So maybe we're just more used to it. But the scripts make it fine. Also it helps with identifying the same warning across different configs/compilers. -- Josh