From 8f797dcd3e7398635085ddd55049832405cfc374 Mon Sep 17 00:00:00 2001 From: Arthur Blot Date: Sun, 14 Feb 2021 00:25:14 +0100 Subject: [PATCH] Remove another obscure useless relocation type made by the new (psp-)gcc --- tools/psp-prxgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/psp-prxgen.c b/tools/psp-prxgen.c index f7da7fd0..d8000108 100644 --- a/tools/psp-prxgen.c +++ b/tools/psp-prxgen.c @@ -419,7 +419,7 @@ int remove_weak_relocs(struct ElfSection *pReloc, struct ElfSection *pSymbol, st } /* Remove PC16 relocations (unsupported by PSP, and useless) */ - if(LH(pSymData[iSymbol].st_shndx) == 0 || ELF32_R_TYPE(LW(pInRel->r_info)) == R_MIPS_PC16) + if(LH(pSymData[iSymbol].st_shndx) == 0 || ELF32_R_TYPE(LW(pInRel->r_info)) == R_MIPS_PC16 || ELF32_R_TYPE(LW(pInRel->r_info)) == R_MIPS_GPREL16) { if(g_verbose) {