]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools GenFw: Add support for R_RISCV_PCREL_LO12_S relocation
authorSunil V L <sunilvl@ventanamicro.com>
Sat, 10 Jul 2021 06:31:14 +0000 (14:31 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 21 Jul 2021 02:12:29 +0000 (02:12 +0000)
commitc32c5911c41fa691a5333e7567003cc124e7ab5f
tree908117ccf2b1211d64f85ca40096118568be840a
parent83b43c4cb17ec8c9fd2bb5843bf66e5961f28c82
BaseTools GenFw: Add support for R_RISCV_PCREL_LO12_S relocation

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3459

This patch adds support for R_RISCV_PCREL_LO12_S relocation type.
The logic is same as existing R_RISCV_PCREL_LO12_I relocation
except the difference between load vs store instruction formats.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Cc: Pete Batard <pete@akeo.ie>
Cc: Abner Chang <abner.chang@hpe.com>
Cc: Daniel Schaefer <daniel.schaefer@hpe.com>
Reviewed-by: Daniel Schaefer <daniel.schaefer@hpe.com>
Acked-by: Abner Chang <abner.chang@hpe.com>
Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
BaseTools/Source/C/GenFw/Elf64Convert.c