Add R_X86_64_[REX_]GOTPCRELX support to gas and ld
[binutils-gdb.git] / bfd / elf32-xc16x.c
index dcce9410502d566997d695c27f666316fa8a3ca7..b00abba6364eca4a0b6378b4630a12bf0854a9ee 100644 (file)
@@ -32,11 +32,11 @@ static reloc_howto_type xc16x_elf_howto_table [] =
   /* This reloc does nothing.  */
   HOWTO (R_XC16X_NONE,         /* type */
         0,                     /* rightshift */
-        1,                     /* size (0 = byte, 1 = short, 2 = long) */
-        16,                    /* bitsize */
+        3,                     /* size (0 = byte, 1 = short, 2 = long) */
+        0,                     /* bitsize */
         FALSE,                 /* pc_relative */
         0,                     /* bitpos */
-        complain_overflow_bitfield, /* complain_on_overflow */
+        complain_overflow_dont, /* complain_on_overflow */
         bfd_elf_generic_reloc, /* special_function */
         "R_XC16X_NONE",        /* name */
         FALSE,                 /* partial_inplace */
@@ -392,7 +392,7 @@ elf32_xc16x_relocate_section (bfd *output_bfd,
                                           rel, 1, relend, howto, 0, contents);
        }
 
-      if (info->relocatable)
+      if (bfd_link_relocatable (info))
        continue;
 
       elf32_xc16x_final_link_relocate (r_type, input_bfd, output_bfd,