diff --git a/iop/Rules.make b/iop/Rules.make index 7348c2e9309..0963358badc 100644 --- a/iop/Rules.make +++ b/iop/Rules.make @@ -146,7 +146,7 @@ $(IOP_BIN_STRIPPED_ELF): $(IOP_BIN_ELF) $(IOP_STRIP) --strip-unneeded --remove-section=.pdr --remove-section=.comment --remove-section=.mdebug.abi32 --remove-section=.gnu.attributes -o $@ $< $(IOP_BIN): $(IOP_BIN_STRIPPED_ELF) $(PS2SDKSRC)/tools/srxfixup/bin/srxfixup - $(PS2SDKSRC)/tools/srxfixup/bin/srxfixup --irx1 -o $@ $< + $(PS2SDKSRC)/tools/srxfixup/bin/srxfixup --rb --irx1 -o $@ $< $(IOP_LIB)_tmp$(MAKE_CURPID): $(IOP_OBJS) $(DIR_GUARD) diff --git a/tools/srxfixup/src/srxgen.c b/tools/srxfixup/src/srxgen.c index 56d003e6249..5a2b79cf87e 100644 --- a/tools/srxfixup/src/srxgen.c +++ b/tools/srxfixup/src/srxgen.c @@ -412,6 +412,8 @@ static void fixlocation_an_rel(elf_section *relsect, unsigned int startaddr) datal = &relsect->info->data[rp->rel.r_offset - relsect->info->shr.sh_addr]; switch ( rp->type ) { + case R_MIPS_NONE: + break; case R_MIPS_16: data_1 = startaddr + (int16_t)*(uint32_t *)datal; if ( (uint16_t)(data_1 >> 16) )