From 31ad447f10112ce237dfacb86d0c6849c5b71745 Mon Sep 17 00:00:00 2001 From: Yao Zi Date: Wed, 5 Aug 2026 21:56:05 +0000 Subject: [PATCH] loongarch64: Remove unnecessary handling of DT_PLTGOT The loongarch64 relocator looks for DT_PLTGOT tag and records its value, but never makes use of it, which seems some left-over when converting from the mips64el port. Remove it. Signed-off-by: Yao Zi --- gnuefi/reloc_loongarch64.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gnuefi/reloc_loongarch64.c b/gnuefi/reloc_loongarch64.c index c07f205d..3a5026bc 100644 --- a/gnuefi/reloc_loongarch64.c +++ b/gnuefi/reloc_loongarch64.c @@ -65,12 +65,6 @@ EFI_STATUS _relocate (long ldbase, Elf64_Dyn *dyn, relent = dyn[i].d_un.d_val; break; - case DT_PLTGOT: - addr = (unsigned long *) - ((unsigned long)dyn[i].d_un.d_ptr - + ldbase); - break; - default: break; }