Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp356969imn; Thu, 28 Jul 2022 02:54:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1snlwL63m6LH0dELxl5X+v6+LePTAwPlSewZozLcdQzaFDHB7m4zylBwNhgDN7T/LzEWOoo X-Received: by 2002:a05:6402:350a:b0:43c:4528:4eb5 with SMTP id b10-20020a056402350a00b0043c45284eb5mr13063062edd.372.1659002094348; Thu, 28 Jul 2022 02:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659002094; cv=none; d=google.com; s=arc-20160816; b=oEsohiaSnXN7LkyDLMh18Wgq9JZBvbz0clgjed+UjimPEyZGws5p1sE8ecy4tGcuho r9BCq3nFQr7Xst8wurQFyjORwkCu/mq64EVvqJhD+AS2aLxEPD+qU0SBKKlSUCIvL3v0 8pJl1RRe2TYN/UX2FCp/1s2hbOCchbd9YkxMRFdOKDAJToDgQ9dfxJG0cs5NLAj2/cOS EvMQNtqligkU5qeiXJa1ZVIPj3v9PbgKNfKHUm6aGGirtKYE0sDUP7x+9ljK1/3atM1B AUOYubzMTW13lxETtpOkxRu7D0U7+JLScRZSPRZkGIBvwiprdSUm0hLbjnUJr3w171p5 sKqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=FYNeabDvyZBg0aXRKaNB8E9EHJIDBdZCwz0UhVRevC8=; b=KkyyNGdiNtzhncARda7bnm5dc0CySp0pMTvk7NviTLMcppTtqm8o398eUci9/k97s/ 8GY5RSYEyg5dPcdVO5PE1pT5y1oMugDazC0X0O4qHvmsDI2Qro7p0LPQSpX8Nm0AdIw9 0+2Sk0uu+jHzz2Rh9FYeXDjEs1EbrDhZP3md+Xyg5vnozjNgsh/aHHuoZaTshhGuUEdT +u+UFUGZgzoAiGXpV+es1YL6d6kgHNBfoWnXX/hLYQpuQPMyQm1Bi3162qnpbkOzU5fg XgcZbs0aZZNVIfeo7F/m0l824uO9fIENQdM5SL+dZYlzDrf6qFWbODF9AdsAc8ircR4O 5dVw== 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 he11-20020a1709073d8b00b0072ee57126e9si400900ejc.166.2022.07.28.02.54.29; Thu, 28 Jul 2022 02:54:54 -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 S234971AbiG1Jqo (ORCPT + 99 others); Thu, 28 Jul 2022 05:46:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233296AbiG1Jqm (ORCPT ); Thu, 28 Jul 2022 05:46:42 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C789140BFD for ; Thu, 28 Jul 2022 02:46:41 -0700 (PDT) Received: from [10.130.0.193] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxr9L_WuJi7dU+AA--.24856S3; Thu, 28 Jul 2022 17:46:40 +0800 (CST) Subject: Re: [PATCH 4/5] LoongArch: Stop using undocumented assembler options To: Xi Ruoyao , loongarch@lists.linux.dev References: <385f63bcbee8e37c42f479ce9cdc7e7d731d419b.camel@xry111.site> <4f09c81c22d0a16883a6914a8f7209957386c07c.camel@xry111.site> Cc: linux-kernel@vger.kernel.org, WANG Xuerui , Huacai Chen From: Youling Tang Message-ID: <4f4ced23-2046-586c-2590-542923025149@loongson.cn> Date: Thu, 28 Jul 2022 17:46:39 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <4f09c81c22d0a16883a6914a8f7209957386c07c.camel@xry111.site> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf9Dxr9L_WuJi7dU+AA--.24856S3 X-Coremail-Antispam: 1UD129KBjvJXoWrKFW5AFW5XF1fKF1fXrWUurg_yoW8Jr13pF Z2kr4DJa1fGFy8tr12v343Xr1q9a1DtF12vFZI9ry8CF4UZr1fXrWaya4DWFyDX3s7AFy0 qr9agFy2qF45twUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvSb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwV C2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC 0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Gr0_Cr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxk0xIA0c2IEe2xFo4CEbIxvr21l c2xSY4AK67AK6r4fMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I 0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWU AVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcV CY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Wr1j6rW3Jr1lIxAIcVC2z280 aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43 ZEXa7IUYjXd5UUUUU== X-CM-SenderInfo: 5wdqw5prxox03j6o00pqjv00gofq/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS 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 07/28/2022 12:29 AM, Xi Ruoyao wrote: > Now we can handle GOT and GOT-based relocations properly, remove the > undocumented `-Wa,-mla-{global,local}-with-{pcrel,abs}` assembler hacks. > > Adjust assembly code to explicitly use "la.pcrel" where necessary. > > Signed-off-by: Xi Ruoyao > --- > arch/loongarch/Makefile | 5 +---- > arch/loongarch/kernel/head.S | 10 +++++----- > 2 files changed, 6 insertions(+), 9 deletions(-) > > diff --git a/arch/loongarch/Makefile b/arch/loongarch/Makefile > index 039dcc4fe1f3..9552c7880d34 100644 > --- a/arch/loongarch/Makefile > +++ b/arch/loongarch/Makefile > @@ -40,10 +40,7 @@ endif > > cflags-y += -G0 -pipe -msoft-float > LDFLAGS_vmlinux += -G0 -static -n -nostdlib > -KBUILD_AFLAGS_KERNEL += -Wa,-mla-global-with-pcrel > -KBUILD_CFLAGS_KERNEL += -Wa,-mla-global-with-pcrel > -KBUILD_AFLAGS_MODULE += -Wa,-mla-global-with-abs > -KBUILD_CFLAGS_MODULE += -fplt -Wa,-mla-global-with-abs,-mla-local-with-abs > +KBUILD_CFLAGS_MODULE += -fplt The -fplt flag may be removed, the compiler defaults to -fplt if not specified (riscv is also not manually specified as -fplt). Thanks, Youling