diff options
author | Alan Modra <amodra@gmail.com> | 2013-07-01 03:45:05 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-07-01 03:45:05 +0000 |
commit | 1c865ab2fb392216c5e46cc9019b9c4c6929dfc5 (patch) | |
tree | f6e612f85fefab063af599287c94db2f777f9cec /ld/emultempl | |
parent | d48b4533774450c3402080f7d403d0967b0f7619 (diff) | |
download | gdb-1c865ab2fb392216c5e46cc9019b9c4c6929dfc5.zip gdb-1c865ab2fb392216c5e46cc9019b9c4c6929dfc5.tar.gz gdb-1c865ab2fb392216c5e46cc9019b9c4c6929dfc5.tar.bz2 |
bfd/
* elf64-ppc.h (ppc64_elf_toc): Delete.
(ppc64_elf_set_toc): Declare.
* elf64-ppc.c (ppc64_elf_toc_reloc): Replace call to ppc64_elf_toc
with call the ppc64_elf_set_toc.
(ppc64_elf_toc_ha_reloc, ppc64_elf_toc64_reloc): Likewise.
(ppc64_elf_start_multitoc_partition): Likewise.
(struct ppc_link_hash_table): Delete dot_toc_dot. Replace all uses
with elf.hgot.
(ppc64_elf_process_dot_syms): Don't make a fake function descriptor
for ".TOC.".
(ppc64_elf_check_relocs): Mark sections with a reference to .TOC.
as needing a toc pointer.
(ppc64_elf_size_stubs): Don't set dot_toc_dot here.
(ppc64_elf_set_toc): Rename from ppc64_elf_toc. Add info param.
Set elf.hgot value.
ld/
* emultempl/ppc64elf.em: (ppc_layout_sections_again): Call
ppc64_elf_set_toc rather than ppc64_elf_toc/_bfd_set_gp_value.
(gld${EMULATION_NAME}_after_allocation): Likewise.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/ppc64elf.em | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em index 43f9b61..f2085d7 100644 --- a/ld/emultempl/ppc64elf.em +++ b/ld/emultempl/ppc64elf.em @@ -423,8 +423,7 @@ ppc_layout_sections_again (void) gld${EMULATION_NAME}_map_segments (TRUE); if (!link_info.relocatable) - _bfd_set_gp_value (link_info.output_bfd, - ppc64_elf_toc (link_info.output_bfd)); + ppc64_elf_set_toc (&link_info, link_info.output_bfd); need_laying_out = -1; } @@ -525,8 +524,7 @@ gld${EMULATION_NAME}_after_allocation (void) gld${EMULATION_NAME}_map_segments (need_laying_out); if (!link_info.relocatable) - _bfd_set_gp_value (link_info.output_bfd, - ppc64_elf_toc (link_info.output_bfd)); + ppc64_elf_set_toc (&link_info, link_info.output_bfd); } } |