commit | 073cfa9cdf4c0971eebfc758f5365f500233205b | [log] [tgz] |
---|---|---|
author | Jim Shu <cwshu@andestech.com> | Tue Aug 17 02:38:33 2021 +0800 |
committer | Christopher Friedt <chrisfriedt@gmail.com> | Fri Aug 20 18:53:23 2021 -0400 |
tree | 9a7dfd32bfd2643bdf81167a0715e61b9d581974 | |
parent | 8ed9cddbc57f9c8c2a518a4055249c115b38e5c3 [diff] |
arch: riscv: introduce global pointer relative addressing support Enable RISC-V GP relative addressing by linker relaxation to reduce the code size. It optimizes addressing of globals in small data section (.sdata). The gp initialization at program start needs each SoC support. Also, if RISC-V SoC has custom linker script, SoC should provide __global_pointer$ symbol in it's linker script. Signed-off-by: Jim Shu <cwshu@andestech.com>