[PATCH 0/9] RISC-V: Make modules loadable.

Palmer Dabbelt palmer at sifive.com
Tue Feb 27 13:21:42 PST 2018


On Tue, 27 Feb 2018 10:26:48 PST (-0800), sorear2 at gmail.com wrote:
> On Tue, Feb 27, 2018 at 10:21 AM, Palmer Dabbelt <palmer at sifive.com> wrote:
>> * Relaxation is too time consuming.  In this case you want to disable all
>> relaxation, and GAS will already emit code without R_RISCV_ALIGN when run
>> with relaxation disabled.
>
> Tangentially, I described a linear time algorithm for relaxation a
> while ago, but binutils is still using a quadratic time one.  Would
> patches be accepted?

Yes.  There's a tiny bit of support in there for it via R_RISCV_DELETE, I think 
we just need to convert the rest of the relaxations over to that and then flip 
around the pass that handles R_RISCV_DELETE and we should be good.

Of course, R_RISCV_DELETE isn't a public relocation so if you have a better way 
to handle it then I'm all ears :).



More information about the linux-riscv mailing list