From: Nylon Chen <nylon.chen@sifive.com>
To: Conor Dooley <conor.dooley@microchip.com>
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
Date: Thu, 15 Jun 2023 16:43:11 +0800 [thread overview]
Message-ID: <20230615084310.GA780@hsinchu15> (raw)
In-Reply-To: <20230615-luxurious-rewire-84ff9d639fea@wendy>
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 <conor.dooley@microchip.com<mailto:conor.dooley@microchip.com>> 於 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.
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: Nylon Chen <nylon.chen@sifive.com>
To: Conor Dooley <conor.dooley@microchip.com>
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
Date: Thu, 15 Jun 2023 16:43:11 +0800 [thread overview]
Message-ID: <20230615084310.GA780@hsinchu15> (raw)
In-Reply-To: <20230615-luxurious-rewire-84ff9d639fea@wendy>
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 <conor.dooley@microchip.com<mailto:conor.dooley@microchip.com>> 於 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.
next prev parent reply other threads:[~2023-06-15 8:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-15 7:23 [PATCH v2] RISC-V: Support 32_PCREL relocation type in kernel module Nylon Chen
2023-06-15 7:23 ` Nylon Chen
2023-06-15 7:36 ` Andreas Schwab
2023-06-15 7:36 ` Andreas Schwab
2023-06-15 7:37 ` Conor Dooley
2023-06-15 7:37 ` Conor Dooley
[not found] ` <CAHh=Yk_=oZJ6eY3jJzLavub5rGsvY=MKv4tGXeiqkz+rgJHwDQ@mail.gmail.com>
2023-06-15 8:07 ` Andreas Schwab
2023-06-15 8:07 ` Andreas Schwab
2023-06-15 8:11 ` Conor Dooley
2023-06-15 8:11 ` Conor Dooley
2023-06-15 8:43 ` Nylon Chen [this message]
2023-06-15 8:43 ` Nylon Chen
2023-06-15 9:11 ` Andreas Schwab
2023-06-15 9:11 ` Andreas Schwab
2023-06-15 9:47 ` Nylon Chen
2023-06-15 9:47 ` Nylon Chen
2023-08-21 7:51 ` Nylon Chen
2023-08-21 7:51 ` Nylon Chen
2023-08-21 8:01 ` Andreas Schwab
2023-08-21 8:01 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230615084310.GA780@hsinchu15 \
--to=nylon.chen@sifive.com \
--cc=ajones@ventanamicro.com \
--cc=aou@eecs.berkeley.edu \
--cc=conor.dooley@microchip.com \
--cc=greentime.hu@sifive.com \
--cc=jszhang@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=nylon7717@gmail.com \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=schwab@suse.de \
--cc=zong.li@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.