diff options
author | Alexey Sheplyakov <asheplyakov@basealt.ru> | 2024-02-21 13:07:21 +0400 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-02-22 14:40:53 +0000 |
commit | ee6185dcf5ad7b0d5e486e66c424341764fc221d (patch) | |
tree | 3353a5c8cc2530db1f2dcd38f49d7705ae0fdaa0 /.github | |
parent | e5f3ba0ca773e8ea4dcfec6e10f18a06d14e79e0 (diff) | |
download | ipxe-ee6185dcf5ad7b0d5e486e66c424341764fc221d.tar.gz |
[efi] Ignore new LoongArch PC-relative relocations and relaxations
Several new relocations types have been added in LoongArch ABI version
2.10. In particular:
- R_LARCH_B16 (18-bit PC-relative jump)
- R_LARCH_B21 (23-bit PC-relative jump)
- R_LARCH_PCREL20_S2 (22-bit PC-relative offset)
Also relocation relaxations have been introduced. Recent GCC (13.2)
and binutils 2.41+ use these types of relocations, which confuses
elf2efi tool. As a result, iPXE EFI images for LoongArch fail to
build with the following error:
Unrecognised relocation type 103
Fix by ignoring R_LARCH_B{16,21} and R_LARCH_PCREL20_S2 (as with other
PC-relative relocations), and by ignoring relaxations (R_LARCH_RELAX).
Relocation relaxations are basically optimizations: ignoring them
results in a correct binary (although it might be suboptimal).
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions