]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf64-x86-64.c
Convert mov to lea for loading address of local common symbol
[thirdparty/binutils-gdb.git] / bfd / elf64-x86-64.c
index 29639d81d53238885c3c559c22cb49611424f14f..aad324490c994ca271eba2ee02d01f57b5d79d8b 100644 (file)
@@ -3074,8 +3074,7 @@ elf_x86_64_convert_mov_to_lea (bfd *abfd, asection *sec,
          /* STT_GNU_IFUNC must keep R_X86_64_GOTPCREL relocation.  We also
             avoid optimizing _DYNAMIC since ld.so may use its link-time
             address.  */
-         if (h->def_regular
-             && h->type != STT_GNU_IFUNC
+         if (h->type != STT_GNU_IFUNC
              && h != htab->elf.hdynamic
              && SYMBOL_REFERENCES_LOCAL (link_info, h))
            {