OSDN Git Service

* config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
authorAlan Modra <amodra@bigpond.net.au>
Wed, 18 Jun 2003 03:27:18 +0000 (03:27 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Wed, 18 Jun 2003 03:27:18 +0000 (03:27 +0000)
".TOC." from PPC64_TOC relocs.

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

index 9856c91..c09d532 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-18  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
+       ".TOC." from PPC64_TOC relocs.
+
 2003-06-17  Alan Modra  <amodra@bigpond.net.au>
 
        * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
index c4c32d1..caf6b7f 100644 (file)
@@ -1613,11 +1613,11 @@ ppc_elf_suffix (str_p, exp_p)
        *str_p = str;
 
        if (reloc == (int) BFD_RELOC_PPC64_TOC
-           && exp_p->X_op == O_symbol)
+           && exp_p->X_op == O_symbol
+           && strcmp (S_GET_NAME (exp_p->X_add_symbol), ".TOC.") == 0)
          {
-           /* This reloc type ignores the symbol.  Change the symbol
-              so that the dummy .TOC. symbol can be omitted from the
-              object file.  */
+           /* Change the symbol so that the dummy .TOC. symbol can be
+              omitted from the object file.  */
            exp_p->X_add_symbol = &abs_symbol;
          }