diff options
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 1 | ||||
-rw-r--r-- | bfd/elf32-ft32.c | 14 | ||||
-rw-r--r-- | bfd/libbfd.h | 1 | ||||
-rw-r--r-- | bfd/reloc.c | 2 |
5 files changed, 25 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a62f7f653fa..ecdb0e7e872 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2017-10-12 James Bowman <james.bowman@ftdichip.com> + + * bfd-in2.h: Regenerate. + * libbfd.h: Regenerate. + * elf32-ft32.c: Add HOWTO R_FT32_15. + * reloc.c: Add BFD_RELOC_FT32_15. + 2017-10-12 Nick Clifton <nickc@redhat.com> * reloc.c (enum bfd_reloc_status): Start values at 2. diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 8265efa32ec..503e237a0a0 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -3149,6 +3149,7 @@ to compensate for the borrow when the low bits are added. */ BFD_RELOC_FT32_20, BFD_RELOC_FT32_17, BFD_RELOC_FT32_18, + BFD_RELOC_FT32_15, /* Fujitsu Frv Relocations. */ diff --git a/bfd/elf32-ft32.c b/bfd/elf32-ft32.c index 233c5a12f3b..2ee691ce2af 100644 --- a/bfd/elf32-ft32.c +++ b/bfd/elf32-ft32.c @@ -147,6 +147,19 @@ static reloc_howto_type ft32_elf_howto_table [] = 0x0003ffff, /* dst_mask */ FALSE), /* pcrel_offset */ + HOWTO (R_FT32_15, /* type */ + 0, /* rightshift */ + 2, /* size (0 = byte, 1 = short, 2 = long) */ + 15, /* bitsize */ + FALSE, /* pc_relative */ + 0, /* bitpos */ + complain_overflow_dont, /* complain_on_overflow */ + bfd_elf_generic_reloc, /* special_function */ + "R_FT32_15", /* name */ + FALSE, /* partial_inplace */ + 0x00000000, /* src_mask */ + 0x00007fff, /* dst_mask */ + FALSE), /* pcrel_offset */ }; /* Map BFD reloc types to FT32 ELF reloc types. */ @@ -167,6 +180,7 @@ static const struct ft32_reloc_map ft32_reloc_map [] = { BFD_RELOC_FT32_20, R_FT32_20 }, { BFD_RELOC_FT32_17, R_FT32_17 }, { BFD_RELOC_FT32_18, R_FT32_18 }, + { BFD_RELOC_FT32_15, R_FT32_15 }, }; static reloc_howto_type * diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 196e1f014ba..0f8843e9477 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -1216,6 +1216,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", "BFD_RELOC_FT32_20", "BFD_RELOC_FT32_17", "BFD_RELOC_FT32_18", + "BFD_RELOC_FT32_15", "BFD_RELOC_FRV_LABEL16", "BFD_RELOC_FRV_LABEL24", diff --git a/bfd/reloc.c b/bfd/reloc.c index b4d85840376..e4edfd35402 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -2487,6 +2487,8 @@ ENUMX BFD_RELOC_FT32_17 ENUMX BFD_RELOC_FT32_18 +ENUMX + BFD_RELOC_FT32_15 ENUMDOC FT32 ELF relocations. COMMENT |