audk/BaseTools/Source/C/GenFw
Sunil V L abfff7c45d BaseTools GenFw: Add support for RISCV GOT/PLT relocations
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3096

This patch adds support for R_RISCV_CALL_PLT and R_RISCV_GOT_HI20
relocations generated by PIE enabled compiler. This also needed
changes to R_RISCV_32 and R_RISCV_64 relocations as explained in
https://github.com/riscv/riscv-gnu-toolchain/issues/905#issuecomment-846682710

Testing:
1) Debian GCC 8.3.0 and booted sifive_u and QMEU virt models.
2) Debian 10.2.0 and booted QEMU virt model.
3) riscv-gnu-tool chain 9.2 and booted QEMU virt model.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>

Acked-by: Abner Chang <abner.chang@hpe.com>
Reviewed-by: Daniel Schaefer <daniel.schaefer@hpe.com>
Tested-by: Daniel Schaefer <daniel.schaefer@hpe.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
2021-06-29 02:47:44 +00:00
..
Elf32Convert.c BaseTools GenFw: Keep read only alloc section as text when convert ELF 2021-06-16 14:11:57 +00:00
Elf32Convert.h BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Elf64Convert.c BaseTools GenFw: Add support for RISCV GOT/PLT relocations 2021-06-29 02:47:44 +00:00
Elf64Convert.h BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
ElfConvert.c BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
ElfConvert.h BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GNUmakefile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GenFw.c BaseTools GenFw: Fix the issue to update the wrong size as SectionSize 2019-10-24 09:41:31 +08:00
GenFw.h BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Makefile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
elf32.h BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
elf64.h BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
elf_common.h BaseTools: BaseTools changes for RISC-V platform. 2020-04-29 02:52:08 +00:00