mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
* elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
than SYMBOL_REFERENCES_LOCAL. (ppc64_elf_relocate_section): Likewise.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2010-07-01 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
|
* elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
|
||||||
|
@ -8039,7 +8039,7 @@ ppc64_elf_edit_toc (struct bfd_link_info *info)
|
|||||||
r_symndx, ibfd))
|
r_symndx, ibfd))
|
||||||
goto error_ret;
|
goto error_ret;
|
||||||
|
|
||||||
if (!SYMBOL_REFERENCES_LOCAL (info, h))
|
if (!SYMBOL_CALLS_LOCAL (info, h))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (h != NULL)
|
if (h != NULL)
|
||||||
@ -12375,7 +12375,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
|
|||||||
if (!WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, info->shared,
|
if (!WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, info->shared,
|
||||||
&h->elf)
|
&h->elf)
|
||||||
|| (info->shared
|
|| (info->shared
|
||||||
&& SYMBOL_REFERENCES_LOCAL (info, &h->elf)))
|
&& SYMBOL_CALLS_LOCAL (info, &h->elf)))
|
||||||
/* This is actually a static link, or it is a
|
/* This is actually a static link, or it is a
|
||||||
-Bsymbolic link and the symbol is defined
|
-Bsymbolic link and the symbol is defined
|
||||||
locally, or the symbol was forced to be local
|
locally, or the symbol was forced to be local
|
||||||
@ -12752,7 +12752,7 @@ ppc64_elf_relocate_section (bfd *output_bfd,
|
|||||||
|
|
||||||
if (skip)
|
if (skip)
|
||||||
memset (&outrel, 0, sizeof outrel);
|
memset (&outrel, 0, sizeof outrel);
|
||||||
else if (!SYMBOL_REFERENCES_LOCAL (info, &h->elf)
|
else if (!SYMBOL_CALLS_LOCAL (info, &h->elf)
|
||||||
&& !is_opd
|
&& !is_opd
|
||||||
&& r_type != R_PPC64_TOC)
|
&& r_type != R_PPC64_TOC)
|
||||||
outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type);
|
outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type);
|
||||||
|
Reference in New Issue
Block a user