aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-07-01 09:48:26 +0000
committerAlan Modra <amodra@gmail.com>2010-07-01 09:48:26 +0000
commit726d3ab069e07a312b87d892e596464e463c2744 (patch)
treefd367aaa02c79fe35d8a3553a4aa48bbd281dea4 /bfd
parent01efc3af7b9d3b0bfb9d1d8a748aad1102a810bc (diff)
downloadgdb-726d3ab069e07a312b87d892e596464e463c2744.zip
gdb-726d3ab069e07a312b87d892e596464e463c2744.tar.gz
gdb-726d3ab069e07a312b87d892e596464e463c2744.tar.bz2
* elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
than SYMBOL_REFERENCES_LOCAL. (ppc64_elf_relocate_section): Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf64-ppc.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index bf26c58..91ed31f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
2010-07-01 Alan Modra <amodra@gmail.com>
+ * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
+ than SYMBOL_REFERENCES_LOCAL.
+ (ppc64_elf_relocate_section): Likewise.
+
+2010-07-01 Alan Modra <amodra@gmail.com>
+
* elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
2010-06-29 Alan Modra <amodra@gmail.com>
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 482be3e..b97bd3a 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -8039,7 +8039,7 @@ ppc64_elf_edit_toc (struct bfd_link_info *info)
r_symndx, ibfd))
goto error_ret;
- if (!SYMBOL_REFERENCES_LOCAL (info, h))
+ if (!SYMBOL_CALLS_LOCAL (info, h))
continue;
if (h != NULL)
@@ -12375,7 +12375,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
if (!WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, info->shared,
&h->elf)
|| (info->shared
- && SYMBOL_REFERENCES_LOCAL (info, &h->elf)))
+ && SYMBOL_CALLS_LOCAL (info, &h->elf)))
/* This is actually a static link, or it is a
-Bsymbolic link and the symbol is defined
locally, or the symbol was forced to be local
@@ -12752,7 +12752,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
if (skip)
memset (&outrel, 0, sizeof outrel);
- else if (!SYMBOL_REFERENCES_LOCAL (info, &h->elf)
+ else if (!SYMBOL_CALLS_LOCAL (info, &h->elf)
&& !is_opd
&& r_type != R_PPC64_TOC)
outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type);