Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp782696rwd; Thu, 15 Jun 2023 01:52:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7edoUHS4BxLKf9ik2R+6Ymx+Mq/U6v2ocd8fjQbvHIA8f3X7tbOZiq3jR8uD9AjgQE87Hh X-Received: by 2002:a17:907:9483:b0:982:79fa:453d with SMTP id dm3-20020a170907948300b0098279fa453dmr3398766ejc.73.1686819138102; Thu, 15 Jun 2023 01:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686819138; cv=none; d=google.com; s=arc-20160816; b=VzhjRcgIB72uKN/pJ73m3x00WoE16a3Bb+3cTeNoj1icwBOskq4FxX3bKkBVYHGe82 43ESSzrobodYUP5/8zUfTWQOLa8tuxfhrdM/2qSXus4BwTZRVxBxKNH7+xZlL+GFgluN q8WTPedizke35qmq0YGQmlCcmCpj0gL6G1TAeUGlx+EeYlXhP8SYs/5REc6P5n1pBkyc AARwTx6v88NvdtR9Y8aJ1idOQWLaO9ETA4ld6FpSM9M0MXxYGYDS14bmSpZf+7hjNYl+ o5HpSCwghWQQLXyYGnZ2PCapr9oCD4IJrQl7/HV5Ogz9nHdWejz6ZpI5YGmZR4Ao+136 FXBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=djE35uiKoDJkBELybDAy6zrBT/KEuH7lg20w5HL8OIY=; b=iYA5ABNNsxkPuvGV+Q6vVTxrHC5UrecakMKMRAJf47X7YtmcKY+CKivE55BlLnrr65 E2QmoJdoZEsyfl1PQQOE5ua2/hD7UkLk7dJTHXLnC4WogFdlr0OdPZsu4SVUirKpAoKk MHsG5CUWzO6YUdqRzvUMNei6wR/RJTDldafN3OWLVTfZyix/UebWScZSufTF1GkLwENP pcovtyshzCs284JFdhUKN2H634Q/CKovGvk+wg9pb3hjSvKsTJ9aq9aV9YXZmTms9i78 zkKIDmK4WKCaC05ogdmE9mbVEY8BteQexo6aYxgrdvPFfwiX2pNZk8w5RFyotGWbNmKI Su1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=QqPI8xpL; 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=sifive.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v11-20020a1709067d8b00b00970f0c11efcsi8896280ejo.339.2023.06.15.01.51.53; Thu, 15 Jun 2023 01:52:18 -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=@sifive.com header.s=google header.b=QqPI8xpL; 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=sifive.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244999AbjFOIno (ORCPT + 99 others); Thu, 15 Jun 2023 04:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240777AbjFOInT (ORCPT ); Thu, 15 Jun 2023 04:43:19 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58DA32977 for ; Thu, 15 Jun 2023 01:43:17 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1b521cc07c8so87115ad.0 for ; Thu, 15 Jun 2023 01:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1686818597; x=1689410597; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=djE35uiKoDJkBELybDAy6zrBT/KEuH7lg20w5HL8OIY=; b=QqPI8xpLPmGC1VUHhEZqF9m8pfEZc5F7rQ9HwV11V5rYv34qGXIBI5I8zcxtY8w4gW ahQIJV2jGimkpyg+fazOPuRZvSaTOAvZ7UbsnVuDoBAbWMiNSbU8RP91ZC7fmmXhQqWC BfjU5mq2wNzzszH6v1+ERjlBsf/6pRvaPCSMwllaZ2uVN+5sKWGk9xtJpq/5+popzsQp tcOcc20Tz7ct27XOioTCJbFIAv+8zF9jjg+lMU9bESZUe/XPyCjp+f90jSYxC5UUiT2I afUxlQFi5JS6sZGqTsxaGo+LjopI/sBPoQ/dSej0xytTuVcCLxxInM1kMcJmhSAHK7Uz OMjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686818597; x=1689410597; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=djE35uiKoDJkBELybDAy6zrBT/KEuH7lg20w5HL8OIY=; b=a+/2QI2W2tHryDC1I6A1vQS1Bnyhxge2Z95fBnMKoFeyCup24ZnQR+KLwY+jTAcE6+ KIDbg9GEu/9h0X39jquvjZRbrML4g2wPPcPASqJQBoVDJednRwBPFAKRuzz/3SVWC5HE OHxCb8cU2fY1uYgAr5j3cleE7xGALWaA8SNeSA4Hy7H12xZIFSNZniSEH884lKPSKp7z ZVZPCR7YDIZVKAiYwT1jX86X1ZhdHNqXl5tdEaiatsv8qJuiF0+Nygng+NQOq9L0dPhs OZBantDye4e/kOnFhLoSVVt9Qtp1lEvcUmPNO+aiSqanWWgTnKKgx1dzjZJR6u+ujiRY T2Bg== X-Gm-Message-State: AC+VfDx9Ga5onsXCMS6dElA2MEQlT9SlI03i8Zx1sL9JNr8SOvCz1CC7 XNg6bDWmwhBHuLz/my9b4O9NFw== X-Received: by 2002:a17:902:d507:b0:1ac:4a41:d38d with SMTP id b7-20020a170902d50700b001ac4a41d38dmr17069378plg.51.1686818596657; Thu, 15 Jun 2023 01:43:16 -0700 (PDT) Received: from hsinchu15 (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id 6-20020a170902c20600b001ac84f5559csm8370111pll.126.2023.06.15.01.43.14 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Jun 2023 01:43:16 -0700 (PDT) Date: Thu, 15 Jun 2023 16:43:11 +0800 From: Nylon Chen To: Conor Dooley Cc: schwab@suse.de, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, jszhang@kernel.org, ajones@ventanamicro.com, aou@eecs.berkeley.edu, palmer@dabbelt.com, paul.walmsley@sifive.com, greentime.hu@sifive.com, zong.li@sifive.com, nylon7717@gmail.com Subject: Re: [PATCH v2] RISC-V: Support 32_PCREL relocation type in kernel module Message-ID: <20230615084310.GA780@hsinchu15> References: <20230615072302.25638-1-nylon.chen@sifive.com> <20230615-unvisited-deceit-9beab8ce987a@wendy> <20230615-luxurious-rewire-84ff9d639fea@wendy> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230615-luxurious-rewire-84ff9d639fea@wendy> User-Agent: Mutt/1.9.4 (2018-02-28) 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_NONE, 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 Thu, Jun 15, 2023 at 09:11:33AM +0100, Conor Dooley wrote: Hi Conor, > Hey Nylon, > > Firstly, no html emails please :/ Sorry, my Gmail settings got messed up. I will be more careful in the future. > > On Thu, Jun 15, 2023 at 03:52:27PM +0800, Nylon Chen wrote: > > Conor Dooley > 於 2023年6月15日 週四 下午3:38寫道: > > > On Thu, Jun 15, 2023 at 03:23:02PM +0800, Nylon Chen wrote: > > > > Fix the 'unsupported relocation type' error caused by > > > > enabling the -fasynchronous-unwind-tables flag, > > > > which generates relocation types that are not supported. > > > > > > What commit adds the -fasynchronous-unwind-tables flag? > > sorry my description is not correct, please allow me to add > > > > I mean, when we use the flag "-fasynchronous-unwind-tables," it generates > > the relocation type R_RISCV_32_PCCREL. However, this type is currently not > > supported, so an error will occur. > > (snip) > > > > Should there be a Fixes: tag for that commit? > > > yes, I will do it. > > What mainline commit actually enables this flag? Because LLVM currently has it enabled by default(https://reviews.llvm.org/D145164), it will generate this relocation type. From what I know, GCC will also enable it in the future. > > Cheers, > Conor.