Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2744976rwe; Sun, 28 Aug 2022 21:50:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR75hC1N6x5kUqDkddbQbUxVVXa3n3AI6juEEn6mChMLNKJmU6F/lMp9in9VWgejDroIcmdc X-Received: by 2002:a05:6402:448b:b0:43b:5ec6:8863 with SMTP id er11-20020a056402448b00b0043b5ec68863mr14893635edb.377.1661748626660; Sun, 28 Aug 2022 21:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661748626; cv=none; d=google.com; s=arc-20160816; b=xRY3gHhyp+IyAGefDHKQE2SRsQNpXHwMJTTTff4VMtuNuhdlVbyC4O1/VdcPmlKRpA C5MTJrmDC1zGbx/Q3da2NpJG6iUPLELFBILVvLAfpaodFRiP45it3+LIuwf0jFznqsC4 1uDOPp/zWqSNAH3d0tnuinxrLNG0ZQkZ6n7ZHw5rufIozSZ7HxMKzrV7Xnhg7rHiUVVn 6rxw546EVKigMQvMw/0LTL6xx8AkpNTqOSEQLCUvpdDtW79bIY+YyiisSjud5zw9Y0H2 rx9KGo9IRS1r9Ok6lsdV9Y3X4kBMUoyhjfNDthcTLxmJU85FGW6Jptr7C/MMB75BIdwt qIbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XP/nQGmypuKDCok4imonNqVCdD6IsQPsPoDaRIw1m2U=; b=0oZ7XJ1Gnkq+iZ0ewC/DjRHlhHfQ2Z3OpdfdhctIIdaAmDiEycNYQGNf98E/1/8J2M kvoXUHwa56Olw9EtE5njsB0NBSo76yFNJslHqL5cMqxl4/Y+8e3jd4Nnlx022fFJWYqA pJEnByb4N1b8XByt4/GiSfz/FjyFuvi8+oBLyaCfcM0r1+nz/p077aKTVqOj24Ql8q6I 1AO/yAMSK+Voxd2fuaQzpQzUyLbsdRdem/UuIJwJfG3gOs+dm7k0dIk/uycSYkCLZpRU OKfHoDx4oIm0XhDR5eqIqXespl/mEwH+STcAM4MghKPmIL5jn5L9URcUN9FlOVV/wI9U 7g0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NHuBauu2; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020aa7d40d000000b004409963eb80si4930054edq.432.2022.08.28.21.50.01; Sun, 28 Aug 2022 21:50: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NHuBauu2; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229640AbiH2Ebs (ORCPT + 99 others); Mon, 29 Aug 2022 00:31:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiH2Ebp (ORCPT ); Mon, 29 Aug 2022 00:31:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 883603DBFE for ; Sun, 28 Aug 2022 21:31:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 13EAA60FC5 for ; Mon, 29 Aug 2022 04:31:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7163BC433D6 for ; Mon, 29 Aug 2022 04:31:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661747503; bh=Q5uwaCjtDZodNXDw9HyknG6gzbEe16cPiJSOg5tENmc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NHuBauu2FP+OcxS2EPGDkVr6rA8U6LMoQlOLsXoYLT69JDEWfXPXwr+SDDfefBX8R jE8c0j4X1PgpujpUKq/wCgE/bLfOfVhxOAk8vBH1uhSKR+IndqAU/gJqAvOsB6hJeB pk8PpiylYbjN9QR55v8vsLbPeGD8btv5i44CP9Utxi4waSEzYA43Seb/3fk+PXLlTk rUxAGgwUEOSgz16hp9/2NCxTzj2UTATQ2kbyckfdqoIaZXfCWwHx9SsK4D+JNcyLqE FNtFPLwrDqAO/6aS8lQ7BQGcTwoDdkTu3hs9En/ZUSSEsZBiKuo95U5hzk+hVgj096 Y30Niq58yNKOw== Received: by mail-vk1-f173.google.com with SMTP id c2so272842vkm.9 for ; Sun, 28 Aug 2022 21:31:43 -0700 (PDT) X-Gm-Message-State: ACgBeo1sPgnBJgkgZEUf+pdgnFnqRCGyelnR78/jsPyiwNC87Hu5klvi eXFpnJjH4WpnPw92Kz8DCrwEOnHkrf6B5X/q/sM= X-Received: by 2002:a1f:9b90:0:b0:374:f09c:876f with SMTP id d138-20020a1f9b90000000b00374f09c876fmr2725218vke.12.1661747502405; Sun, 28 Aug 2022 21:31:42 -0700 (PDT) MIME-Version: 1.0 References: <20220827175436.156464-1-xry111@xry111.site> <20220827175436.156464-2-xry111@xry111.site> In-Reply-To: From: Huacai Chen Date: Mon, 29 Aug 2022 12:31:31 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/8] LoongArch: Add CONFIG_CC_HAS_EXPLICIT_RELOCS To: Xi Ruoyao Cc: loongarch@lists.linux.dev, LKML , WANG Xuerui , Youling Tang , Jinyang He Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 On Mon, Aug 29, 2022 at 12:20 AM Xi Ruoyao wrote: > > On Sun, 2022-08-28 at 22:15 +0800, Huacai Chen wrote: > > > +config CC_HAS_EXPLICIT_RELOCS > > > + def_bool $(cc-option,-mexplicit-relocs) && $(as- > > > instr,x:pcalau12i \$t0$(comma)%pc_hi20(x)) > > Is it possible that we only change the Makefile and not touch Kconfig? > > I guess we can, but if we'll introduce objtool we can > > select HAVE_OBJTOOL if CC_HAS_EXPLICIT_RELOCS > > then. OK, you can keep your way. Huacai > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University