From 9f2b53d7841efc0d15bc5ceb3f2af4b3f8749065 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 18 Jun 2003 03:27:18 +0000 Subject: [PATCH] * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than ".TOC." from PPC64_TOC relocs. --- gas/ChangeLog | 5 +++++ gas/config/tc-ppc.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 9856c919b1b..c09d532ce60 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2003-06-18 Alan Modra + + * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than + ".TOC." from PPC64_TOC relocs. + 2003-06-17 Alan Modra * 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 c4c32d1aeab..caf6b7ffb6a 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; } -- 2.30.2