Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5557124rwb; Wed, 9 Aug 2023 06:07:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGfsNEGKgMGEmRp3X6Ujr9LDeeppc+a0LZwO6Blq3ivYSxlf8rTR3lyhuw57qdw0xg9oxi X-Received: by 2002:a05:6a20:5504:b0:13d:7433:2ebf with SMTP id ko4-20020a056a20550400b0013d74332ebfmr2540367pzb.60.1691586435251; Wed, 09 Aug 2023 06:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691586435; cv=none; d=google.com; s=arc-20160816; b=CbtHMXxqULH2E/EhLdYcxPgL4nO327Kf1Q3zBPtL1qOlPeIIrgLQNGwffnxLP8gi+u 1OqdW+xPNJ7snuaZGoFE6rO016g12G26XPzSc3LOFkSKIZrqiHijR2E6y/Z5pNLqoijG ZBrdQYhdTprM39SXZvpHzYiW1Z+bwcN0ZstRL7mgKjiGtTKPqP3tOqH3/Vc6hOIZ1veB ZcYICPPuG2ypw8wvi27/9ELWNk+hwXoe/eT8uLpttCOZk5oacIKtfy2sgHdoI6r7z3eI weDutLnqFzfsJA8bmx2GrHIQsTXkqa0R8NwtVJ3dDG9M2WpnVGqVErfLJ+Oqgwt5Nc5X EzvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=FXRfUXGd2rFM2eDblJy+lJeshZKsKGXJHpID2161kOk=; fh=n6rikrhDaIDZ/A/cv3NLa4O9UHppdO5ne+R0BLPFlTI=; b=TKrwOKppdj8O4lMNBHZRtggLhl0xOMQmaFW8I8dvQZwrzsu2G7AF52ekqnu/GkxWof RuKRR5xLQmHagA8veFE3YkIQaZ/O6orxMwrxz9DnP9wm9vit/FdbP3hZ4uovS9B8wD+m BTDk6q+QwiQ5AoW3VNYiE37nIxNL2BxwBr9b0HKQhsn6X/YdR/2aE+65O66JJ09YyJ/i knxeLNqoFZnyx3S+reigp9gNoyf4j0jODt/BrbC044dO+9ng3sQjcuAaLjrDpBILz3vH CBQNyU6uavh6vvspCPMVCIYZMNdiEdq2SHkzgX7Wov7UAhwOQnlKNg2wi5O6HzXAIPi1 lC0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=BI60Fa2u; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w63-20020a638242000000b00564cd050c48si1444617pgd.799.2023.08.09.06.07.01; Wed, 09 Aug 2023 06:07:15 -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=@xry111.site header.s=default header.b=BI60Fa2u; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230365AbjHILwH (ORCPT + 99 others); Wed, 9 Aug 2023 07:52:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234321AbjHILwB (ORCPT ); Wed, 9 Aug 2023 07:52:01 -0400 Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E4A4196 for ; Wed, 9 Aug 2023 04:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1691581918; bh=FXRfUXGd2rFM2eDblJy+lJeshZKsKGXJHpID2161kOk=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=BI60Fa2uZO0GeJOSS4LS3Az3RXy0EB0C0QDnXbdoOvTVMrb86c3iosRvuG72h6oML O+NzlnrAWY9Ja8PQ4kREwdW2tay+ix3yYMmF9lddryGQBZugSERvUYdrexrE4Pfjki LZrqErGqo0l+Lq0qnP2KDH2AvH6R30sWHSsPYBkM= Received: from [IPv6:2409:8a0c:2a4:2170:40dc:a500:81f0:2] (unknown [IPv6:2409:8a0c:2a4:2170:40dc:a500:81f0:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id B1CAC659AD; Wed, 9 Aug 2023 07:51:52 -0400 (EDT) Message-ID: Subject: Re: [PATCH v1 5/6] objtool: Add skipped member in struct reloc From: Xi Ruoyao To: Peter Zijlstra , Tiezhu Yang Cc: Josh Poimboeuf , Huacai Chen , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Date: Wed, 09 Aug 2023 19:51:35 +0800 In-Reply-To: <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> <20230803121103.GE214207@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 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_PASS,SPF_PASS,URIBL_BLOCKED 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, 2023-08-03 at 14:11 +0200, Peter Zijlstra wrote: > On Thu, Aug 03, 2023 at 07:36:24PM +0800, Tiezhu Yang wrote: >=20 > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= ".long " __stringify_label(c) "b - .\n\t"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 \ >=20 > > 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. Hmm, but I don't like the idea to disallow users having GAS <=3D 2.41 from using ORC unwinder. Can we emit the R_LARCH_32_PCREL reloc with an explicit .reloc directive? > Yes, this is exactly what PC relative relocations are for. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University