aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-06-18 03:27:18 +0000
committerAlan Modra <amodra@gmail.com>2003-06-18 03:27:18 +0000
commit9f2b53d7841efc0d15bc5ceb3f2af4b3f8749065 (patch)
tree7ae808ce35bfa9e67aa49ebe870dbf251ea72211 /gas
parent0b13192e9fe3aaae7dfe98757b13a2c5515512f5 (diff)
downloadfsf-binutils-gdb-9f2b53d7841efc0d15bc5ceb3f2af4b3f8749065.zip
fsf-binutils-gdb-9f2b53d7841efc0d15bc5ceb3f2af4b3f8749065.tar.gz
fsf-binutils-gdb-9f2b53d7841efc0d15bc5ceb3f2af4b3f8749065.tar.bz2
* config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
".TOC." from PPC64_TOC relocs.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ppc.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 9856c91..c09d532 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index c4c32d1..caf6b7f 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -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;
}