Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4172027ioo; Wed, 25 May 2022 17:17:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww55RHOOkXqptW0ULaqJEFdjRu6diY5sXgXjeQsFqmzXD1RWnvdaCVx01+vqkxS8fUeGIy X-Received: by 2002:a17:907:9686:b0:6ff:d7c:8717 with SMTP id hd6-20020a170907968600b006ff0d7c8717mr6283530ejc.171.1653524246199; Wed, 25 May 2022 17:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653524246; cv=none; d=google.com; s=arc-20160816; b=i7vtWlbhkg8ZMgIjRJicOnMuMf2VF449MT5KOuTUTnVmiIx06Luw4PlKZmZYn0INxC yz7ll1kJ4DbgohPCaT2damOOTwy20Bh0/gVTURXLRXZw1fYgvSBSh4iMAcT/e61/xJOf ZeJ77egORng5HuPa/9+AF8bZsB37/Q2PYoJOlTRRhUIXhEO347znDmrhf028OvksgV7N wEsZSKIPxnjWfisLulhcLffvuUU5GnneT+i9RYikIDdn9ktClkcoXdePjfWx47QwAA8F hZQ1HDrWYvAaj0fGxQWYHqKbpNUeIFySq6nNHxC43Imu/cYX9ZPYfVgOJksJjygInTXk MoZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=JxbKXZk2AXRhYw/yBFSfMvzrZOVqpj5q1DEAflfHB3Y=; b=0EO9dGyFpPNygNBBn5XwSetL1bRnDxuRGSqBJiVSFWc5LmVCj3dYuHVHswYI+yUNKU 5dQC2zy1KwjjOuB38xz172/WVwHMuXHIYOac3GQxaSZXMhyVlJnuPefsMcrxPtstTsu1 gPWXPAh0Ofr03X4QWL/5Ru5Gl6CT9UB7VXuwnAwjVZLGQg640kVGjJkaKyh2nJFnvq+l IqbAahixTuVDYguK7PSByyAMxYl37BZRpxCydTNeArmjOTYyWtr3y9QuGO51TlrNL7WJ vqy/LPI4PavAn4bkBG1YOP7tsPS7cZ0zNmeC5B7Hw0e3K2uSpdSDJmFu/A8ZXhDdnTmD I6KQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp25-20020a1709073e1900b006e01f1d9677si76877ejc.532.2022.05.25.17.16.59; Wed, 25 May 2022 17:17:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245478AbiEYQuk (ORCPT + 99 others); Wed, 25 May 2022 12:50:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244734AbiEYQuj (ORCPT ); Wed, 25 May 2022 12:50:39 -0400 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3699B1145C for ; Wed, 25 May 2022 09:50:36 -0700 (PDT) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 24PGet78019132; Wed, 25 May 2022 11:40:55 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 24PGes7x019131; Wed, 25 May 2022 11:40:54 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 25 May 2022 11:40:54 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , peterz@infradead.org, aik@ozlabs.ru, sv@linux.ibm.com, rostedt@goodmis.org, jpoimboe@redhat.com, naveen.n.rao@linux.vnet.ibm.com, mbenes@suse.cz, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v1 2/4] objtool: Add R_REL32 macro Message-ID: <20220525164054.GO25951@gate.crashing.org> References: <35932b18ea948cbc1e7ec9d006e4575641a4daa5.1653494186.git.christophe.leroy@csgroup.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35932b18ea948cbc1e7ec9d006e4575641a4daa5.1653494186.git.christophe.leroy@csgroup.eu> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 Hi! On Wed, May 25, 2022 at 05:58:15PM +0200, Christophe Leroy wrote: > In order to allow other architectures than x86 to use 32 bits > relative relocations, define a R_REL32 macro that each architecture > will define, in the same way as already done for R_NONE. What are the expected semantics of this relocation? It is PC-relative, sure, but what is the destination? S+A-P always? That works for both x86-64 and for PowerPC, but it should be written doen somewhere :-) Segher