]> asedeno.scripts.mit.edu Git - linux.git/commit
RISC-V: Add section of GOT.PLT for kernel module
authorZong Li <zong@andestech.com>
Thu, 15 Mar 2018 08:50:42 +0000 (16:50 +0800)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 3 Apr 2018 03:00:54 +0000 (20:00 -0700)
commitb8bde0ef12bd43f013d879973a1900930bfb95ee
tree953afd76c9ed57a34ed2ee3c042c4e061bc9d5dc
parentab1ef68e54019937cf859f2c86c9ead6f3e62f19
RISC-V: Add section of GOT.PLT for kernel module

Separate the function symbol address from .plt to .got.plt section.

The original plt entry has trampoline code with symbol address,
there is a 32-bit padding bwtween jar instruction and symbol address.

Extract the symbol address to .got.plt to reduce the module size.

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