Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2164828rwo; Thu, 3 Aug 2023 05:49:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlGS+ZPEe/d+PKuZuvEIqQKnejjR3EJIUciSh8lPB1rbhC22KfJzwh8VQslHz91+zFvvElgp X-Received: by 2002:a17:907:7745:b0:992:b9f4:85db with SMTP id kx5-20020a170907774500b00992b9f485dbmr7313826ejc.39.1691066969433; Thu, 03 Aug 2023 05:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691066969; cv=none; d=google.com; s=arc-20160816; b=yvMbP0+XIbFGIAl5YjoYluJZmIAEHdBV8Nz67D7lizEGv5+WVwG9iUDS2+V3TQbZmE ruQihyYxQt/PePReuSohfcgOFCy/AIj2JDwfJmnH2bVTw5QcoQ2zuQnVAl/TREouDc9x POV3dqWN4wz/tydvsymu8bZSR06MwBU2XBnnNbcUZ1jNHCOd8oBFzw6HQzjZVJpQXy/D ztcQBxPDSvIXyauNCH7l8Tm/2YL6NHJJAPSmUse5ADawQvWedQX+ctmEQ5Ouc2kDhfcu NZHqAidNxge0OurigwglTuL3/gRBKm5n3Kkn7+KX7QKE1OarSb6bYa4A8ZpIETD1GPoh n5uw== 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=zV+MKFs0Ek/F4CDO6/XiX2nafcwDJWDb5aXZEN1DceI=; fh=bt+fV2PXxyEb5lcXBBKB9gibR5cwjHwaRwIF76B6+JE=; b=jv/rl5iznEaYI4nd2l0snDsamGPj5+hcMxepyMcA/J0z0ehSi15XGobAu1lpaoDO6g 4S6KACPP4GIhyf0lvLObU7M920g5HvbtUVsgQ2+ijU37eueT7V9bDnFOCi3AT2JXlVqd aTGcrd7erq0KU6xNFQLGRDUboRd5jmbkMIDOqspqqjxiJfLUSJ6LEa7IVV1ctnuNhiFI E+8XnjgiYohQLgaW1rnyxeqszwGBg9wnj9nn7wN1vHXMsxkcQW4wlbQq7JRaeXBbY6o5 dkn8O2EW3aexmrZrd51bZsam2MhO+OErHit2kPZUQ65wPn/LfPe86X6j6NaUUBDaMnOe ow9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=S9FNMwBM; 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 u23-20020a1709064ad700b0099bcd1d96acsi12223459ejt.9.2023.08.03.05.49.04; Thu, 03 Aug 2023 05:49:29 -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=@infradead.org header.s=casper.20170209 header.b=S9FNMwBM; 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 S235803AbjHCMLb (ORCPT + 99 others); Thu, 3 Aug 2023 08:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234728AbjHCMLa (ORCPT ); Thu, 3 Aug 2023 08:11:30 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 582642D49 for ; Thu, 3 Aug 2023 05:11:29 -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=zV+MKFs0Ek/F4CDO6/XiX2nafcwDJWDb5aXZEN1DceI=; b=S9FNMwBMzkvE+fZ14ylxcUw30g ev4K4QQWOYn5S5GLUsYACkTA/cXow8hT4p401VAdYWjkh5K+p47n3jJswhzTnR8gJtgDsvyOKX4vf EMMDOQPLlrWCgZiPrFwtF1mgSjIYPa2cbIzekZ9V3/LscpwRT96CJUPRkQXN/5Bg/C8yo5GRb1Or8 1kUNoiuolfemDWXkFD9/dTTV+E/GH4V6bM+C2Ko2sC7rE9EEy4xibszDtRiQZ9dOKgdXpfsHejDqA HNAKzY/gvBUhUFq1dF+E/wn0Rbt1KB+lkm5NHoWck30+DsZ8g33ve1ILu9Cp5H8gkHTyWZM5nJ1nX IOvpnU3g==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qRXAW-003Xnq-OW; Thu, 03 Aug 2023 12:11:04 +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 434E330007E; Thu, 3 Aug 2023 14:11:03 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 29CFE20727FD6; Thu, 3 Aug 2023 14:11:03 +0200 (CEST) Date: Thu, 3 Aug 2023 14:11:03 +0200 From: Peter Zijlstra To: Tiezhu Yang Cc: Josh Poimboeuf , Huacai Chen , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: Re: [PATCH v1 5/6] objtool: Add skipped member in struct reloc Message-ID: <20230803121103.GE214207@hirez.programming.kicks-ass.net> References: <1690272910-11869-1-git-send-email-yangtiezhu@loongson.cn> <1690272910-11869-6-git-send-email-yangtiezhu@loongson.cn> <20230725115959.GE3765278@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,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 Thu, Aug 03, 2023 at 07:36:24PM +0800, Tiezhu Yang wrote: > > ".long " __stringify_label(c) "b - .\n\t" \ > I discussed offline with the engineers who are familiar with gnu > assembler of LoongArch, maybe it can modify the gnu assembler > to use R_LARCH_32_PCREL to replace a pair of R_LARCH_ADD32 and > R_LARCH_SUB32, then I will test it again and drop this change if > possible. Yes, this is exactly what PC relative relocations are for.