45 lines
1.8 KiB
Diff
45 lines
1.8 KiB
Diff
|
|
diff --git a/BaseTools/Source/C/GenFw/Elf64Convert.c b/BaseTools/Source/C/GenFw/Elf64Convert.c
|
||
|
|
index d53ecb1767..8018d68db1 100644
|
||
|
|
--- a/BaseTools/Source/C/GenFw/Elf64Convert.c
|
||
|
|
+++ b/BaseTools/Source/C/GenFw/Elf64Convert.c
|
||
|
|
@@ -1778,7 +1778,11 @@ WriteSections64 (
|
||
|
|
case R_LARCH_TLS_LD64_HI20:
|
||
|
|
case R_LARCH_TLS_GD_PC_HI20:
|
||
|
|
case R_LARCH_TLS_GD64_HI20:
|
||
|
|
+ case R_LARCH_32_PCREL:
|
||
|
|
case R_LARCH_RELAX:
|
||
|
|
+ case R_LARCH_DELETE:
|
||
|
|
+ case R_LARCH_ALIGN:
|
||
|
|
+ case R_LARCH_PCREL20_S2:
|
||
|
|
//
|
||
|
|
// These types are not used or do not require fixup.
|
||
|
|
//
|
||
|
|
@@ -2185,7 +2189,11 @@ WriteRelocations64 (
|
||
|
|
case R_LARCH_TLS_LD64_HI20:
|
||
|
|
case R_LARCH_TLS_GD_PC_HI20:
|
||
|
|
case R_LARCH_TLS_GD64_HI20:
|
||
|
|
+ case R_LARCH_32_PCREL:
|
||
|
|
case R_LARCH_RELAX:
|
||
|
|
+ case R_LARCH_DELETE:
|
||
|
|
+ case R_LARCH_ALIGN:
|
||
|
|
+ case R_LARCH_PCREL20_S2:
|
||
|
|
//
|
||
|
|
// These types are not used or do not require fixup in PE format files.
|
||
|
|
//
|
||
|
|
diff --git a/BaseTools/Source/C/GenFw/elf_common.h b/BaseTools/Source/C/GenFw/elf_common.h
|
||
|
|
index ccd32804b0..d3a5303953 100644
|
||
|
|
--- a/BaseTools/Source/C/GenFw/elf_common.h
|
||
|
|
+++ b/BaseTools/Source/C/GenFw/elf_common.h
|
||
|
|
@@ -1144,5 +1144,10 @@ typedef struct {
|
||
|
|
#define R_LARCH_TLS_LD64_HI20 96
|
||
|
|
#define R_LARCH_TLS_GD_PC_HI20 97
|
||
|
|
#define R_LARCH_TLS_GD64_HI20 98
|
||
|
|
-#define R_LARCH_RELAX 99
|
||
|
|
+#define R_LARCH_32_PCREL 99
|
||
|
|
+#define R_LARCH_RELAX 100
|
||
|
|
+#define R_LARCH_DELETE 101
|
||
|
|
+#define R_LARCH_ALIGN 102
|
||
|
|
+#define R_LARCH_PCREL20_S2 103
|
||
|
|
+
|
||
|
|
#endif /* !_SYS_ELF_COMMON_H_ */
|