alistair23-linux/arch/riscv
Palmer Dabbelt 7a8e7da422
RISC-V: Fixes to module loading
This cleans up the module support that was commited earlier to work with
what's actually emitted from our GCC port as it lands upstream.  Most of
the work here is adding new relocations to the kernel.

There's some limitations on module loading imposed by the kernel:

* The kernel doesn't support linker relaxation, which is necessary to
  support R_RISCV_ALIGN.  In order to get reliable module building
  you're going to need to a GCC that supports the new '-mno-relax',
  which IIRC isn't going to be out until 8.1.0.  It's somewhat unlikely
  that R_RISCV_ALIGN will appear in a module even without '-mno-relax'
  support, so issues shouldn't be common.

* There is no large code model for RISC-V, which means modules must be
  loaded within a 32-bit signed offset of the kernel.  We don't
  currently have any mechanism for ensuring this memory remains free or
  moving pages around, so issues here might be common.

I fixed a singcle merge conflict in arch/riscv/kernel/Makefile.
2018-04-02 20:43:14 -07:00
..
configs RISC-V: Enable module support in defconfig 2018-04-02 20:00:56 -07:00
include RISC-V: Fixes to module loading 2018-04-02 20:43:14 -07:00
kernel RISC-V: Fixes to module loading 2018-04-02 20:43:14 -07:00
lib RISC-V: Export some expected symbols for modules 2017-11-30 10:01:10 -08:00
mm RISC-V changes for 4.16 2018-02-07 11:33:08 -08:00
Kconfig RISC-V: Fixes to module loading 2018-04-02 20:43:14 -07:00
Makefile RISC-V: Fixes to module loading 2018-04-02 20:43:14 -07:00