mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
* elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
(elf_mn10200_howto_table): Likewise. (mn10200_reloc_map): Likewise. How did I miss the 16bit pc-relative relocs?!?
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
Wed Jan 29 00:00:49 1997 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
|
||||
(elf_mn10200_howto_table): Likewise.
|
||||
(mn10200_reloc_map): Likewise.
|
||||
|
||||
start-sanitize-m32r
|
||||
Mon Jan 27 12:07:35 1997 Doug Evans <dje@seba.cygnus.com>
|
||||
|
||||
|
@ -40,6 +40,7 @@ enum reloc_type
|
||||
R_MN10200_8,
|
||||
R_MN10200_24,
|
||||
R_MN10200_PCREL8,
|
||||
R_MN10200_PCREL16,
|
||||
R_MN10200_PCREL24,
|
||||
R_MN10200_MAX
|
||||
};
|
||||
@ -130,6 +131,20 @@ static reloc_howto_type elf_mn10200_howto_table[] =
|
||||
0xff,
|
||||
0xff,
|
||||
true),
|
||||
/* Simple 16 pc-relative reloc. */
|
||||
HOWTO (R_MN10200_PCREL16,
|
||||
0,
|
||||
1,
|
||||
16,
|
||||
true,
|
||||
0,
|
||||
complain_overflow_bitfield,
|
||||
bfd_elf_generic_reloc,
|
||||
"R_MN10200_PCREL16",
|
||||
false,
|
||||
0xffff,
|
||||
0xffff,
|
||||
true),
|
||||
/* Simple 32bit pc-relative reloc with a 1 byte adjustment
|
||||
to get the pc-relative offset correct. */
|
||||
HOWTO (R_MN10200_PCREL24,
|
||||
@ -161,6 +176,7 @@ static const struct mn10200_reloc_map mn10200_reloc_map[] =
|
||||
{ BFD_RELOC_8, R_MN10200_8, },
|
||||
{ BFD_RELOC_24, R_MN10200_24, },
|
||||
{ BFD_RELOC_8_PCREL, R_MN10200_PCREL8, },
|
||||
{ BFD_RELOC_16_PCREL, R_MN10200_PCREL16, },
|
||||
{ BFD_RELOC_24_PCREL, R_MN10200_PCREL24, },
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user