mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
74f0fb5065
PR 5604 * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param names from others. (_bfd_elf_gc_keep): Declare. * elfxx-target.h (elf_backend_gc_keep): Define. (elfNN_bed): Init new field. * elflink.c (_bfd_elf_gc_keep): New function. (bfd_elf_gc_sections): Call gc_keep. * elf64-ppc.c (elf_backend_gc_keep): Define. (struct _ppc64_elf_section_data): Move .opd related fields to a struct so they don't occupy the same storage. Adjust accesses throughout file. (ppc64_elf_gc_keep): New function, split out from.. (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark to mark .opd section, just set gc_mark. (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust unless we are changing .opd. Test non-NULL opd->adjust at all accesses throughout file. * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype. ld/ PR 5604 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry syms to _bfd_elf_gc_keep. * emultempl/ppc64elf.em (ppc_before_allocation): Don't call ppc64_elf_edit_opd if no_opd_opt.
49 lines
1.8 KiB
C
49 lines
1.8 KiB
C
/* PowerPC64-specific support for 64-bit ELF.
|
|
Copyright 2002, 2003, 2004, 2005, 2007, 2008
|
|
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 3 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., 51 Franklin Street - Fifth Floor, Boston,
|
|
MA 02110-1301, USA. */
|
|
|
|
void ppc64_elf_init_stub_bfd
|
|
(bfd *, struct bfd_link_info *);
|
|
bfd_boolean ppc64_elf_edit_opd
|
|
(bfd *, struct bfd_link_info *, bfd_boolean);
|
|
asection *ppc64_elf_tls_setup
|
|
(bfd *, struct bfd_link_info *);
|
|
bfd_boolean ppc64_elf_tls_optimize
|
|
(bfd *, struct bfd_link_info *);
|
|
bfd_boolean ppc64_elf_edit_toc
|
|
(bfd *, struct bfd_link_info *);
|
|
bfd_vma ppc64_elf_toc
|
|
(bfd *);
|
|
int ppc64_elf_setup_section_lists
|
|
(bfd *, struct bfd_link_info *, int);
|
|
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 **);
|
|
void ppc64_elf_restore_symbols
|
|
(struct bfd_link_info *info);
|