Remove another obscure useless relocation type made by the new (psp-)gcc

This commit is contained in:
Arthur Blot
2021-02-14 00:25:14 +01:00
parent d1e5220c92
commit 8f797dcd3e

View File

@@ -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)
{