* config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
authorRichard Henderson <rth@redhat.com>
Sun, 2 Jun 2002 08:36:10 +0000 (08:36 +0000)
committerRichard Henderson <rth@redhat.com>
Sun, 2 Jun 2002 08:36:10 +0000 (08:36 +0000)
        with LITERALs without sequence numbers.

gas/ChangeLog
gas/config/tc-alpha.c

index 21206ca32a50f68d82989713847c22ba1d757869..ff8d3b9f26039cba341eab0fc6007e98f6ebacc2 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-02  Richard Henderson  <rth@redhat.com>
+
+       * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
+       with LITERALs without sequence numbers.
+
 2002-06-01  Richard Henderson  <rth@redhat.com>
 
        * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
index dec4db435f61a429d5c07170e830276b044d1b26..b96eb465139e006bbe0d2e09c696202ec4a7700d 100644 (file)
@@ -1775,8 +1775,9 @@ alpha_adjust_symtab_relocs (abfd, sec, ptr)
          break;
 
        case BFD_RELOC_ALPHA_ELF_LITERAL:
-         if (fixp->tc_fix_data.info->saw_tlsgd
-             || fixp->tc_fix_data.info->saw_tlsldm)
+         if (fixp->tc_fix_data.info
+             && (fixp->tc_fix_data.info->saw_tlsgd
+                 || fixp->tc_fix_data.info->saw_tlsldm))
            break;
          /* FALLTHRU */
 
@@ -1832,7 +1833,8 @@ alpha_adjust_symtab_relocs (abfd, sec, ptr)
          /* FALLTHRU */
 
        case BFD_RELOC_ALPHA_ELF_LITERAL:
-         if (fixp->tc_fix_data.info->n_master == 1
+         if (fixp->tc_fix_data.info
+             && fixp->tc_fix_data.info->n_master == 1
              && ! fixp->tc_fix_data.info->multi_section_p)
            {
              for (slave = fixp->tc_fix_data.info->slaves;