bfd/
[deliverable/binutils-gdb.git] / bfd / elf32-xc16x.c
index 4d7ee99162f2d2624d176c8092e79c3e7167ce56..11d984002b31b5cdae0dbb7eb62a283cd2c25473 100644 (file)
@@ -385,13 +385,11 @@ elf32_xc16x_relocate_section (bfd *output_bfd,
        {
          /* For relocs against symbols from removed linkonce sections,
             or sections discarded by a linker script, we just want the
-            section contents zeroed.  Avoid any special processing.  */
+            section contents cleared.  Avoid any special processing.  */
          reloc_howto_type *howto;
          howto = xc16x_reloc_type_lookup (input_bfd, r_type);
-         _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset);
-         rel->r_info = 0;
-         rel->r_addend = 0;
-         continue;
+         RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section,
+                                          rel, relend, howto, contents);
        }
 
       if (info->relocatable)
This page took 0.028846 seconds and 4 git commands to generate.