audk/BaseTools/Source/C
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
..
BrotliCompress BaseTools/Brotli: Fix compressed data loss issue 2021-05-17 03:45:13 +00:00
Common BaseTools/CommonLib.h: Build failed due to MAX_LONG_FILE_PATH 2021-01-06 04:01:12 +00:00
DevicePath BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
EfiRom BaseTools/EfiRom: remove redundant checking of argc 2020-12-22 11:22:36 +00:00
GenCrc32 BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GenFfs BaseTools/GenFfs: Optimazing else if statement 2020-12-22 03:31:36 +00:00
GenFv BaseTools: Add image type into generate map file 2020-11-10 04:22:27 +00:00
GenFw BaseTools GenFw: Add support for RISCV GOT/PLT relocations 2021-06-29 02:47:44 +00:00
GenSec BaseTools/GenSec: Fix spelling mistake 2020-08-03 17:25:46 +00:00
Include BaseTools: Copy PACKED definition from MdePkg Base.h 2020-10-10 05:43:11 +00:00
LzmaCompress BaseTools LzmaCompress: Update LZMA to new 19.00 version 2021-01-08 10:03:53 +00:00
Makefiles BaseTools: Fix BaseTools nmake cleanall hang issue 2020-11-06 02:45:40 +00:00
PyEfiCompressor BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
TianoCompress BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
VfrCompile BaseTools/VfrCompile: VFR compiler supports REST_STYLE in HII option 2020-11-11 00:53:00 +00:00
VolInfo BaseTools/VolInfo: Fix spelling mistake 2020-08-05 17:25:48 +00:00
GNUmakefile BaseTools: Convert Split tool to python 2021-01-21 10:19:09 +00:00
Makefile BaseTools: Convert Split tool to python 2021-01-21 10:19:09 +00:00