From a75b500e0f1490cf0d31df9db3aed4522ae873d1 Mon Sep 17 00:00:00 2001 From: ticat_fp Date: Thu, 4 Jan 2024 09:12:33 +0000 Subject: [PATCH] update LoongArch-add-new-relocs-lsx-lasx-lvz-and-lbt.patch. Not handling relax info. Signed-off-by: ticat_fp --- ...-add-new-relocs-lsx-lasx-lvz-and-lbt.patch | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/LoongArch-add-new-relocs-lsx-lasx-lvz-and-lbt.patch b/LoongArch-add-new-relocs-lsx-lasx-lvz-and-lbt.patch index 54292a2..615e835 100644 --- a/LoongArch-add-new-relocs-lsx-lasx-lvz-and-lbt.patch +++ b/LoongArch-add-new-relocs-lsx-lasx-lvz-and-lbt.patch @@ -1361,32 +1361,6 @@ index a623aa32..a418969a 100644 + if (2 == info->relax_pass) + loongarch_relax_align (abfd, sec, sym_sec, info, rel, symval); + break; -+ case R_LARCH_DELETE: -+ if (info->relax_pass == 1) -+ { -+ loongarch_relax_delete_bytes (abfd, sec, rel->r_offset, 4, info); -+ rel->r_info = ELFNN_R_INFO (0, R_LARCH_NONE); -+ } -+ break; -+ case R_LARCH_PCALA_HI20: -+ if (info->relax_pass == 0) -+ { -+ if (i + 4 > sec->reloc_count) -+ break; -+ loongarch_relax_pcala_addi (abfd, sec, rel, symval); -+ } -+ break; -+ case R_LARCH_GOT_PC_HI20: -+ if (local_got) -+ { -+ if (i + 4 > sec->reloc_count) -+ break; -+ if (loongarch_relax_pcala_ld (abfd, sec, rel)) -+ { -+ loongarch_relax_pcala_addi (abfd, sec, rel, symval); -+ } -+ } -+ break; + default: + break; + } -- Gitee