mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
* config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
".TOC." from PPC64_TOC relocs.
This commit is contained in:
parent
0b13192e9f
commit
9f2b53d784
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user