This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PowerPC64 SYMBOL_REFERENCES_LOCAL
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 1 Jul 2010 19:16:57 +0930
- Subject: PowerPC64 SYMBOL_REFERENCES_LOCAL
PowerPC64 does not need to treat protected function symbols specially
since the ABI does not require an executable to define a dynamic
function address to be the address of the associated plt entry.
* elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
than SYMBOL_REFERENCES_LOCAL.
(ppc64_elf_relocate_section): Likewise.
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.331
diff -u -p -r1.331 elf64-ppc.c
--- bfd/elf64-ppc.c 1 Jul 2010 04:12:29 -0000 1.331
+++ bfd/elf64-ppc.c 1 Jul 2010 08:04:25 -0000
@@ -8039,7 +8039,7 @@ ppc64_elf_edit_toc (struct bfd_link_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_
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_
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);
--
Alan Modra
Australia Development Lab, IBM