MIPS/BFD: Fix rightshift for remaining n32 reloc howtos

Correct the rightshift amount for the R_MIPS_HIGHER, R_MIPS_HIGHEST and
R_MIPS_CALL_HI16 RELA relocation howtos, missed with commit f38e992147
("MIPS HI16 and LO16 reloc howtos").
This commit is contained in:
Maciej W. Rozycki
2025-10-06 21:37:28 +01:00
parent 6571c2a158
commit d9b826d8fc

View File

@@ -1264,7 +1264,7 @@ static reloc_howto_type elf_mips_howto_table_rela[] =
/* Get the higher value of a 64 bit addend. */
HOWTO (R_MIPS_HIGHER, /* type */
0, /* rightshift */
32, /* rightshift */
4, /* size */
16, /* bitsize */
false, /* pc_relative */
@@ -1279,7 +1279,7 @@ static reloc_howto_type elf_mips_howto_table_rela[] =
/* Get the highest value of a 64 bit addend. */
HOWTO (R_MIPS_HIGHEST, /* type */
0, /* rightshift */
48, /* rightshift */
4, /* size */
16, /* bitsize */
false, /* pc_relative */
@@ -1294,7 +1294,7 @@ static reloc_howto_type elf_mips_howto_table_rela[] =
/* High 16 bits of displacement in global offset table. */
HOWTO (R_MIPS_CALL_HI16, /* type */
0, /* rightshift */
16, /* rightshift */
4, /* size */
16, /* bitsize */
false, /* pc_relative */