e717da7ead
(struct ppc64_elf_obj_tdata): New. (ppc64_elf_tdata, ppc64_tlsld_got): Define. (ppc64_elf_mkobject): New function. (struct got_entry): Add "owner". Move "tls_type". (struct ppc_link_hash_table): Delete "relgot", "tlsld_got". (ppc64_elf_init_stub_bfd): New function. (create_got_section): Create header .got in dynobj. Create .got and .rela.got in each bfd. Stash pointers in ppc64_elf_obj_tdata. (ppc64_elf_create_dynamic_sections): Don't call create_got_section. Look for dynobj .got, and test it. (ppc64_elf_copy_indirect_symbol): Adjust for changed got. (update_local_sym_info): Likewise. (ppc64_elf_check_relocs): Likewise. (ppc64_elf_gc_sweep_hook): Likewise. (ppc64_elf_tls_optimize): Likewise. (allocate_dynrelocs): Likewise. (ppc64_elf_size_dynamic_sections): Likewise. (ppc64_elf_relocate_section): Likewise. (ppc64_elf_next_toc_section): Update comment. (toc_adjusting_stub_needed): Remove unneeded cast. (ppc64_elf_build_stubs): Check for stub sections in stub bfd by testing section flags. (ppc64_elf_build_stubs): Likewise. (ppc64_elf_size_stubs): Likewise. Remove stub_bfd param. (ppc64_elf_finish_dynamic_sections): Write out got sections. (func_desc_adjust): Copy over dynamic info for undef weaks. * elf64-ppc.h (ppc64_elf_init_stub_bfd): Declare. (ppc64_elf_size_stubs): Update prototype. * elflink.h (elf_link_sort_relocs): Use link_orders to find reldyn input sections rather than scanning dynobj.
45 lines
1.7 KiB
C
45 lines
1.7 KiB
C
/* PowerPC64-specific support for 64-bit ELF.
|
|
Copyright 2002, 2003 Free Software Foundation, Inc.
|
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|
|
|
void ppc64_elf_init_stub_bfd
|
|
(bfd *, struct bfd_link_info *);
|
|
bfd_boolean ppc64_elf_mark_entry_syms
|
|
(struct bfd_link_info *);
|
|
bfd_boolean ppc64_elf_edit_opd
|
|
(bfd *, struct bfd_link_info *);
|
|
bfd_boolean ppc64_elf_tls_setup
|
|
(bfd *, struct bfd_link_info *);
|
|
bfd_boolean ppc64_elf_tls_optimize
|
|
(bfd *, struct bfd_link_info *);
|
|
bfd_vma ppc64_elf_toc
|
|
(bfd *);
|
|
int ppc64_elf_setup_section_lists
|
|
(bfd *, struct bfd_link_info *);
|
|
void ppc64_elf_next_toc_section
|
|
(struct bfd_link_info *, asection *);
|
|
void ppc64_elf_reinit_toc
|
|
(bfd *, struct bfd_link_info *);
|
|
bfd_boolean ppc64_elf_next_input_section
|
|
(struct bfd_link_info *, asection *);
|
|
bfd_boolean ppc64_elf_size_stubs
|
|
(bfd *, struct bfd_link_info *, bfd_signed_vma,
|
|
asection *(*) (const char *, asection *), void (*) (void));
|
|
bfd_boolean ppc64_elf_build_stubs
|
|
(bfd_boolean, struct bfd_link_info *, char **);
|