diff options
Diffstat (limited to 'bfd/elf32-xc16x.c')
-rw-r--r-- | bfd/elf32-xc16x.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bfd/elf32-xc16x.c b/bfd/elf32-xc16x.c index 4d7ee99..11d9840 100644 --- a/bfd/elf32-xc16x.c +++ b/bfd/elf32-xc16x.c @@ -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) |