File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,7 @@ impl Arch for ArchMips {
293
293
}
294
294
elf:: R_MIPS_PC16 => 0 , // PC-relative relocation
295
295
R_MIPS15_S3 => ( ( code & 0x001FFFC0 ) >> 3 ) as i64 ,
296
+ elf:: R_MIPS_GPREL32 => ( code as i32 as i64 ) + self . ri_gp_value as i64 ,
296
297
flags => bail ! ( "Unsupported MIPS implicit relocation {flags:?}" ) ,
297
298
} ;
298
299
Ok ( Some ( RelocationOverride { target : RelocationOverrideTarget :: Keep , addend } ) )
@@ -318,6 +319,7 @@ impl Arch for ArchMips {
318
319
elf:: R_MIPS_GOT16 => Some ( "R_MIPS_GOT16" ) ,
319
320
elf:: R_MIPS_PC16 => Some ( "R_MIPS_PC16" ) ,
320
321
elf:: R_MIPS_CALL16 => Some ( "R_MIPS_CALL16" ) ,
322
+ elf:: R_MIPS_GPREL32 => Some ( "R_MIPS_GPREL32" ) ,
321
323
R_MIPS15_S3 => Some ( "R_MIPS15_S3" ) ,
322
324
_ => None ,
323
325
} ,
You can’t perform that action at this time.
0 commit comments