2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / bfd / elf64-x86-64.c
index 44149c5bf7de2ebf3101359a2f4ef252ea22eca5..274b8746b7df98c21de53626c839d1b996ab3a1c 100644 (file)
@@ -1232,7 +1232,7 @@ elf64_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
        case R_X86_64_TPOFF32:
          if (info->shared)
            {
-             if (h->root.root.string)
+             if (h)
                name = h->root.root.string;
              else
                name = bfd_elf_sym_name (abfd, symtab_hdr, isym,
@@ -1327,7 +1327,7 @@ elf64_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
                  tls_type |= old_tls_type;
                else
                  {
-                   if (h->root.root.string)
+                   if (h)
                      name = h->root.root.string;
                    else
                      name = bfd_elf_sym_name (abfd, symtab_hdr,
@@ -1402,7 +1402,7 @@ elf64_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
              && (sec->flags & SEC_ALLOC) != 0
              && (sec->flags & SEC_READONLY) != 0)
            {
-             if (h->root.root.string)
+             if (h)
                name = h->root.root.string;
              else
                name = bfd_elf_sym_name (abfd, symtab_hdr, isym, NULL);
This page took 0.028076 seconds and 4 git commands to generate.