Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3908228rwb; Mon, 5 Sep 2022 22:18:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR4oKe1YpXQzEO3T5UBKKupSA8QUjDcfCGC80Ep0E91jxEOGw86iGda4d8ixjL/Xj//GS4Qo X-Received: by 2002:a05:6a00:16c4:b0:535:890:d52 with SMTP id l4-20020a056a0016c400b0053508900d52mr53708225pfc.9.1662441488624; Mon, 05 Sep 2022 22:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662441488; cv=none; d=google.com; s=arc-20160816; b=PmBotJk9knnfORj0isr5GbFFskMvcUs4IgbkpaWpeUpKDB4Cpj4nWSxchP4df4JRka ueCjOpWHxLrazGKY+0BxLSCjGTK80gM75pLy9eYVUGRuWyt3zS8gxmrocXIpJ2USehO8 30B2/oqcvtG7550ZaqZPcfDC7opAr7BoEDQe8amgqJqg5Mj/DiahuXhRf2JyubBJ+FvK XGv6oga5cOJ4VrC1HncCzdePrBwTtg4rm9wq9e4cr8VlouQ7gY1ddGoANYQ9udd9m/+h 61zbEL3oM1LYjVJAwDkKkBUv6ueszFSQkADrSZ7DAg0NdfkWkMo235OFzuS7GFQA4lZK YI9Q== 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=1oNtxf1c5bbGEwVSqkKGWodjPqD73sS9Q23KWDUkQ6g=; b=ImWGPbSW3tokbUvKKdntJFjPWvkn/RPTMUOXjjMVKAzjenBRWpM/jbIv/lqDsg0uuu yFz/dzUz3hXjAQtC48Tx0ifdIojbnUN0DTJFlGAEtrqn1Ym9RpR8g4CWk15zicbulWgD Lqng/VrMrF7EgIJvpAX+OqAZ/UxvTp/YsOCY2MZfFpLmF9Ynr4Vap0SiiMlGIsV1+NPR 7CvPkzfHil0xPTPCOwxdgIP8BYOUNR7RzGLZsRvMGvA+ErObF8O6oI67V3qMf27v3mEK H9RFZI6B38E74tPYQ0HJrwWbabpoFDO+VpnD9oN1e/MIURgJRaQ/oLu1pehftWxId2jD YYJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b="aX6nT/2J"; 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 u10-20020a170902e5ca00b001750b7098b1si13220424plf.563.2022.09.05.22.17.57; Mon, 05 Sep 2022 22:18:08 -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="aX6nT/2J"; 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 S232069AbiIFFBi (ORCPT + 99 others); Tue, 6 Sep 2022 01:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbiIFFBe (ORCPT ); Tue, 6 Sep 2022 01:01:34 -0400 Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B3875F122 for ; Mon, 5 Sep 2022 22:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1662440491; bh=1oNtxf1c5bbGEwVSqkKGWodjPqD73sS9Q23KWDUkQ6g=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=aX6nT/2JzHVMgDszWnrupgVW3cEl6rr1OHFw95xgVFGoIfsOSegPaE4yzhx5DK0Dd folpTg84mXDIFjOPKbbx7TKGcYj4uBDfhJS5GDM7cFZpZbCd1sKLGix+GJQxKDM6JL NDQYjTTvZo+xAf7IrRnSCKpkNRve+8QD07ZIXGz8= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 5BDB965C37; Tue, 6 Sep 2022 01:01:29 -0400 (EDT) Message-ID: <6a3e185eaaac4a1397abe43026004548d47ee305.camel@xry111.site> Subject: Re: [PATCH v7 0/5] LoongArch: Support toolchain with new relocation types From: Xi Ruoyao To: Huacai Chen , Ard Biesheuvel Cc: Jinyang He , WANG Xuerui , loongarch@lists.linux.dev, LKML , Youling Tang Date: Tue, 06 Sep 2022 13:01:27 +0800 In-Reply-To: References: <20220830104806.128365-1-xry111@xry111.site> <5b87173faeef587a2ffaaa6f58d34e0940231067.camel@xry111.site> <97291c0fe5a660c844475ff019c8db6af77ecf86.camel@xry111.site> <8d0f96e2977c5c78f17bb410087f2aad986ef5a4.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.45.3 MIME-Version: 1.0 X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_PASS,SPF_PASS,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 Tue, 2022-09-06 at 12:43 +0800, Huacai Chen wrote: > > Note that -fpic/-fPIC is "position-independent code *suitable for > > use in a shared library*", while -fpie/-fPIE is more like just > > "position-independent code".=C2=A0 The names of those options are confu= sing. > > (When -fpic was invented first time, people mostly believed "PIC had > > been only for shared libraries", so it's named -fpic instead of -shlib > > or something.)=C2=A0 IMO in the EFI stub for other ports, -fpie should = be > > used instead of -fpic as well because the EFI stub is not similar to a > > shared library in any means. > You are right, but I guess that Ard doesn't want to squash the efistub > change into the LoongArch efistub support patch. :) It only changes cflags-$(CONFIG_LOONGARCH), which is LoongArch specific. And arm64 is also using -fpie. Should I send the one-line EFI stub change to linux-efi first? --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University