* config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than

".TOC." from PPC64_TOC relocs.
This commit is contained in:
Alan Modra 2003-06-18 03:27:18 +00:00
parent 0b13192e9f
commit 9f2b53d784
2 changed files with 9 additions and 4 deletions

View 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.

View 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;
}