Fix Opcode generation of ld a,(bc) and ld a,(de) on target z80
[binutils-gdb.git] / bfd / elf32-m32r.c
index 171884f88aa044aed5b0b51d1fc9561dcc37bcfd..032a17d2dffe9fe5d3dfe9dd1154815f4e5889cf 100644 (file)
@@ -3654,6 +3654,9 @@ m32r_elf_gc_sweep_hook (bfd *abfd ATTRIBUTE_UNUSED,
   bfd_signed_vma *local_got_refcounts;
   const Elf_Internal_Rela *rel, *relend;
 
+  if (info->relocatable)
+    return TRUE;
+
   elf_section_data (sec)->local_dynrel = NULL;
 
   symtab_hdr = &elf_tdata (abfd)->symtab_hdr;