Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3469900pxj; Mon, 7 Jun 2021 11:22:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztzuz3OFBIgLY2BJOS69upiCHvBbsvmzHLDoRs27H/fJa4Yq6TbwQWPLszvLLYmpBkH6az X-Received: by 2002:a05:6402:702:: with SMTP id w2mr21466891edx.189.1623090163366; Mon, 07 Jun 2021 11:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623090163; cv=none; d=google.com; s=arc-20160816; b=bIzr+knjrsMXq/cUtlxGouYPtWH6SvIBm6mxhC2qgqE5osYc8FjyddU0cEMr/qly19 ZDJJs9sHfT8DU7HhTGoF/I22qwDH0BHUEVEeANyfxilpKcp/235jZeMI3BLi856eS2Oq jIElVGKIzNrXV7DNwlyX9VZ5rqau9kuRyvO5zb+DudKyyvpq8BcotR7Dbb4/TmvnpMLg oRN9rJ4guWy9cbexvyrbrPuLROMaLT1NUZTIlWBI3wohjLBIM+lE03E1bwvBSYZihFJG KDLDUrxZtDIvTOG/R0GQC8Jr2XR6cci+gHNVKC838jB2E5j0Bf3bUqMpp3qqqOdYOfTA ycnQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZUrYE4B+hFTWCtUpmjnHWEzCGxeHF3UiBJxJAFGwgfo=; b=sgNBWvG52UB7xihZ5RMagJd3/Lto6wOaHlnJcjgQ8d73MkVAllRCrVtxFcNJweop8L +2gKidd8S0Ry7frlqUz+2FzJdFBYsIQeikLQPVvCpG2cLztklJInFR9AGT3aKCvtQ4rA DFEHBXa686g3SKGGg95dtwH7jJIFVEt2V/l2Kq31o0/MdizRfPRBHr5CWyUGRqmcdsd+ A0X2V/O4ViEMhGIa4CEFybgHAYKANscV9iP6TmAaG3SPJjhAwLlcS+FCI0pDpi43CRdK tz7eoOvea1rZGauNWhe1arlbtTwya62DBEYpmyM6E9iSVGeyIRMvAdT/OZWGinHfK8ie Xf8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=kiF+wabN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si13394378ejo.319.2021.06.07.11.22.18; Mon, 07 Jun 2021 11:22:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=kiF+wabN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230398AbhFGSVy (ORCPT + 99 others); Mon, 7 Jun 2021 14:21:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbhFGSVx (ORCPT ); Mon, 7 Jun 2021 14:21:53 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB471C061766 for ; Mon, 7 Jun 2021 11:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=ZUrYE4B+hFTWCtUpmjnHWEzCGxeHF3UiBJxJAFGwgfo=; b=kiF+wabN/0ukTTW0ObpV9zWpoz 63XIfEYn5r1x7NgEJuAR/o2criyQPF4o87q3nkYDLBCTFbGh9HYhyxOKEEAUMuzHxdf3r5R3Xb+nq CevV+poQrFWIQGL2D97bir3OG5R3+G0D+Ov3Opnugrd4+AEz9lp69x52owYtOhUO+NlezMQ10JuLc MKprYP38W7ZMHlDzdaF9HlUonAkIXqjUTskv2Jqdz4xm3x5Pz538xiQseqtEgYtZhduRLHLtWEYRl 8G7D4Cin+tNy/29hzPIl2nDuxfv3PcV+iNR2io4nU/kl+SZUDIIkj9xkDMGE8KhAoyYBcmrnlP4Mc zYrON3IA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqJqg-004UOz-NN; Mon, 07 Jun 2021 18:19:49 +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 (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 9D1453001E3; Mon, 7 Jun 2021 20:19:47 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8370A2DC8FF13; Mon, 7 Jun 2021 20:19:47 +0200 (CEST) Date: Mon, 7 Jun 2021 20:19:47 +0200 From: Peter Zijlstra To: =?utf-8?B?RsSBbmctcnXDrCBTw7JuZw==?= Cc: Nick Desaulniers , Josh Poimboeuf , lma@semihalf.com, Guenter Roeck , Juergen Gross , lb@semihalf.com, LKML , mbenes@suse.com, =?utf-8?B?UmFkb3PFgmF3?= Biernacki , upstream@semihalf.com, "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , clang-built-linux , Nathan Chancellor , Sami Tolvanen Subject: Re: [PATCH v3 16/16] objtool,x86: Rewrite retpoline thunk calls Message-ID: References: <20210604205018.2238778-1-ndesaulniers@google.com> <20210604235046.w3hazgcpsg4oefex@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 05, 2021 at 06:58:39PM -0700, Fāng-ruì Sòng wrote: > You may use https://github.com/llvm/llvm-project/blob/main/llvm/tools/llvm-objcopy/ELF/Object.cpp#L843 > as a reference. BTW, Error::success(), is that a successfull error, or an erroneous success? :-))