original_kernel/arch/riscv
Zong Li ab1ef68e54
RISC-V: Add sections of PLT and GOT for kernel module
The address of external symbols will locate more than 32-bit offset
in 64-bit kernel with sv39 or sv48 virtual addressing.

Module loader emits the GOT and PLT entries for data symbols and
function symbols respectively.

The PLT entry is a trampoline code for jumping to the 64-bit
real address. The GOT entry is just the data symbol address.

Signed-off-by: Zong Li <zong@andestech.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2018-04-02 20:00:54 -07:00
..
configs RISC-V: Add a basic defconfig 2018-01-07 15:14:36 -08:00
include RISC-V: Add sections of PLT and GOT for kernel module 2018-04-02 20:00:54 -07:00
kernel RISC-V: Add sections of PLT and GOT for kernel module 2018-04-02 20:00:54 -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: Add sections of PLT and GOT for kernel module 2018-04-02 20:00:54 -07:00
Makefile RISC-V: Add sections of PLT and GOT for kernel module 2018-04-02 20:00:54 -07:00