diff options
author | Zong Li <zong@andestech.com> | 2018-03-15 16:50:42 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2018-04-02 20:00:54 -0700 |
commit | b8bde0ef12bd43f013d879973a1900930bfb95ee (patch) | |
tree | 953afd76c9ed57a34ed2ee3c042c4e061bc9d5dc /arch/riscv/kernel/module.lds | |
parent | ab1ef68e54019937cf859f2c86c9ead6f3e62f19 (diff) |
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>
Diffstat (limited to 'arch/riscv/kernel/module.lds')
-rw-r--r-- | arch/riscv/kernel/module.lds | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kernel/module.lds b/arch/riscv/kernel/module.lds index 7ef580e62883..295ecfb341a2 100644 --- a/arch/riscv/kernel/module.lds +++ b/arch/riscv/kernel/module.lds @@ -4,4 +4,5 @@ SECTIONS { .plt (NOLOAD) : { BYTE(0) } .got (NOLOAD) : { BYTE(0) } + .got.plt (NOLOAD) : { BYTE(0) } } |