Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp174098iob; Mon, 2 May 2022 16:17:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZhq440dawG/GF5UI++nZfCV3BMSiO8l7Bu+AexWS9ggcxi26Xu357JZyAdxK3J1ZBZdbc X-Received: by 2002:a17:90b:3e83:b0:1d2:edd3:5639 with SMTP id rj3-20020a17090b3e8300b001d2edd35639mr1618902pjb.183.1651533422995; Mon, 02 May 2022 16:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651533422; cv=none; d=google.com; s=arc-20160816; b=fFgftMFZDnsE/JhqXS98aCKdZ/fdo1EA6srAAamx+jSeeQnyWpoSUm7b/f6U71U8Z/ 8whjkffjdL/Vg/97D6cwpRgIpc5+PxJR8RJpVNesaiVytiAD6LmxVEUfrqyl57RAB6+b 8GXpmIj392S9+QO1BNryN6x68Pbz6KNGHI5f2otH/4kmPUInYO3Oo/1288828lVh0SBE Cv0xWfhhq6RMBOJ/GJxNRYvuPxFKWK7DLccrEU1IJxLIsrCWkxZvgxlBUmSJHI5e8N0T fyqeKtLS/PWnMOb9BhE7wUvdKLLOO8Sdt+xppZqwfAXtsseRcO/gJd7epqHmYIsZgGEj hVuQ== 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=fq0OOJPCMavBT+EhrhU7rTo/wq7ZnPOHuT6uKwhzCBs=; b=AaVTHEjQrp2H9yiGaH6vuh/nPfTpkork6+qSeZ25RXPzALGGo2PUNz7zEj56p6RQ9N Ijk6pzDNII9Ti5vlnDpAdBHI9pV1ICBvezVN/aw5d4r7CMcAKTatpEO68Qe8mpkp2IlJ +3yfAdsDYNDzeEOjelwzknXHss+3/1uIrcSzRd00x62dZ/tDJCNxkwrfvWf7ARiV7MGb Eyp6bysRG4sCCOmezLvAPbzbZJbt+/iWHrml+SoxAiGkkjtaw+WP4QA25tMXPM4sG0Ef mW4WrWYeTzqFJNLCLKnmIhLP9p5oIbAE3IsYDPtn9vlsRaGEOn8zfXPLJub6JacXwDhi niMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WssMZGSr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 2-20020a630d42000000b003ab1851e3f8si14607296pgn.236.2022.05.02.16.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:17:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WssMZGSr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E330E2E694; Mon, 2 May 2022 16:16:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237716AbiD2V0N (ORCPT + 99 others); Fri, 29 Apr 2022 17:26:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236993AbiD2V0K (ORCPT ); Fri, 29 Apr 2022 17:26:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35A4D53B54 for ; Fri, 29 Apr 2022 14:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=fq0OOJPCMavBT+EhrhU7rTo/wq7ZnPOHuT6uKwhzCBs=; b=WssMZGSrGMbWgJ5GxspxEKISec dpJIGdZzLUxusmk2snNNTSBjuVQOfCcmfm4lfzLodCCq0Rt16xnANmtw7lV5v12x/iiQUNYJee69H 6FU9hFFPmoom004Q3RqWOBxRTMl9dVUlmqyemnnVZaBJR3OkfOpEOKYFHo/8/ER0U3ff9zsLxa6WF dalzKtPvYELQnsQDqvksOCp3WkqOkK5e30NngL4kdiaYMISpNPCcPi2fJoWbjLPBwXhENQc0V8Nym ZTOg68g+ommUgIyHii98aKO5g9YsPwxFuKFCDTPZd+5sX3NwLQKScHExbChmcHyKqo+tvv0HqRwN2 omLRSXwg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkY4S-00CoKv-3Q; Fri, 29 Apr 2022 21:22:36 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AF188300385; Fri, 29 Apr 2022 23:22:35 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 966A220295B20; Fri, 29 Apr 2022 23:22:35 +0200 (CEST) Date: Fri, 29 Apr 2022 23:22:35 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] objtool: Fix STACK_FRAME_NON_STANDARD reloc type Message-ID: References: <20220429092024.GT2731@worktop.programming.kicks-ass.net> <20220429201325.d5kifdezdru2i3lp@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220429201325.d5kifdezdru2i3lp@treble> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Apr 29, 2022 at 01:13:25PM -0700, Josh Poimboeuf wrote: > Can use _ASM_PTR here, and objtool.h needs synced to tools. Here goes.. --- Subject: objtool: Fix STACK_FRAME_NON_STANDARD reloc type From: Peter Zijlstra Date: Tue Apr 26 17:08:53 CEST 2022 STACK_FRAME_NON_STANDARD results in inconsistent relocation types depending on .c or .S usage: Relocation section '.rela.discard.func_stack_frame_non_standard' at offset 0x3c01090 contains 5 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000000 00020c2200000002 R_X86_64_PC32 0000000000047b40 do_suspend_lowlevel + 0 0000000000000008 0002461e00000001 R_X86_64_64 00000000000480a0 machine_real_restart + 0 0000000000000010 0000001400000001 R_X86_64_64 0000000000000000 .rodata + b3d4 0000000000000018 0002444600000002 R_X86_64_PC32 00000000000678a0 __efi64_thunk + 0 0000000000000020 0002659d00000001 R_X86_64_64 0000000000113160 __crash_kexec + 0 Signed-off-by: Peter Zijlstra (Intel) --- include/linux/objtool.h | 2 +- tools/include/linux/objtool.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/include/linux/objtool.h +++ b/include/linux/objtool.h @@ -137,7 +137,7 @@ struct unwind_hint { .macro STACK_FRAME_NON_STANDARD func:req .pushsection .discard.func_stack_frame_non_standard, "aw" - .long \func - . + _ASM_PTR \func .popsection .endm --- a/tools/include/linux/objtool.h +++ b/tools/include/linux/objtool.h @@ -137,7 +137,7 @@ struct unwind_hint { .macro STACK_FRAME_NON_STANDARD func:req .pushsection .discard.func_stack_frame_non_standard, "aw" - .long \func - . + _ASM_PTR \func .popsection .endm