]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-ft32.c
FT32: support for FT32B processor - part 1
[thirdparty/binutils-gdb.git] / bfd / elf32-ft32.c
index 233c5a12f3ba5ebacbd524ff9c1429f323da5732..2ee691ce2af0907f1dd62e6b7a0b1d014711071b 100644 (file)
@@ -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 */
 };
 \f
 /* 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 *