]> 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)
commit3e814d0a680771f38935aeea06004968fc872e51
treed3c60f4aa52ca648f52fa0e19b63f3d90452927a
parentfb4ab9235cdc53976c682bbbf1b393c79c3dfcee
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