mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
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:
@@ -1264,7 +1264,7 @@ static reloc_howto_type elf_mips_howto_table_rela[] =
|
|||||||
|
|
||||||
/* Get the higher value of a 64 bit addend. */
|
/* Get the higher value of a 64 bit addend. */
|
||||||
HOWTO (R_MIPS_HIGHER, /* type */
|
HOWTO (R_MIPS_HIGHER, /* type */
|
||||||
0, /* rightshift */
|
32, /* rightshift */
|
||||||
4, /* size */
|
4, /* size */
|
||||||
16, /* bitsize */
|
16, /* bitsize */
|
||||||
false, /* pc_relative */
|
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. */
|
/* Get the highest value of a 64 bit addend. */
|
||||||
HOWTO (R_MIPS_HIGHEST, /* type */
|
HOWTO (R_MIPS_HIGHEST, /* type */
|
||||||
0, /* rightshift */
|
48, /* rightshift */
|
||||||
4, /* size */
|
4, /* size */
|
||||||
16, /* bitsize */
|
16, /* bitsize */
|
||||||
false, /* pc_relative */
|
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. */
|
/* High 16 bits of displacement in global offset table. */
|
||||||
HOWTO (R_MIPS_CALL_HI16, /* type */
|
HOWTO (R_MIPS_CALL_HI16, /* type */
|
||||||
0, /* rightshift */
|
16, /* rightshift */
|
||||||
4, /* size */
|
4, /* size */
|
||||||
16, /* bitsize */
|
16, /* bitsize */
|
||||||
false, /* pc_relative */
|
false, /* pc_relative */
|
||||||
|
|||||||
Reference in New Issue
Block a user