diff options
author | Alan Modra <amodra@gmail.com> | 2003-06-18 03:27:18 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-06-18 03:27:18 +0000 |
commit | 9f2b53d7841efc0d15bc5ceb3f2af4b3f8749065 (patch) | |
tree | 7ae808ce35bfa9e67aa49ebe870dbf251ea72211 /gas/config/tc-ppc.c | |
parent | 0b13192e9fe3aaae7dfe98757b13a2c5515512f5 (diff) | |
download | gdb-9f2b53d7841efc0d15bc5ceb3f2af4b3f8749065.zip gdb-9f2b53d7841efc0d15bc5ceb3f2af4b3f8749065.tar.gz 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/config/tc-ppc.c')
-rw-r--r-- | gas/config/tc-ppc.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |