]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Support ALIGN relocation type in kernel module
authorZong Li <zong@andestech.com>
Thu, 15 Mar 2018 08:50:47 +0000 (16:50 +0800)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 3 Apr 2018 03:00:55 +0000 (20:00 -0700)
commit8d32ec6c269edc8aedb31dfe53101242870e91d3
treed3c60f4aa52ca648f52fa0e19b63f3d90452927a
parentbde4e466af68fcc1231524013fabaeba52786375
RISC-V: Support ALIGN relocation type in kernel module

Just fail on align type. Kernel modules loader didn't do relax
like linker, it is difficult to remove or migrate the code,
but the remnant nop instructions harm the performaace of module.
We expect the building module with the no-relax option.

Signed-off-by: Zong Li <zong@andestech.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/module.c