Update my e-mail address.
[binutils-gdb.git] / bfd / elf32-ppc.h
blob23a029e4fd004f93562cf16665d06f8c7bf14d1b
1 /* PowerPC-specific support for 64-bit ELF.
2 Copyright (C) 2003-2017 Free Software Foundation, Inc.
4 This file is part of BFD, the Binary File Descriptor library.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19 MA 02110-1301, USA. */
21 enum ppc_elf_plt_type
23 PLT_UNSET,
24 PLT_OLD,
25 PLT_NEW,
26 PLT_VXWORKS
29 /* Various options passed from the linker to bfd backend. */
30 struct ppc_elf_params
32 /* Chooses the type of .plt. */
33 enum ppc_elf_plt_type plt_style;
35 /* Whether to emit symbols for stubs. */
36 int emit_stub_syms;
38 /* Whether to emit special stub for __tls_get_addr calls. */
39 int no_tls_get_addr_opt;
41 /* Insert trampolines for branches that won't reach their destination. */
42 int branch_trampolines;
44 /* Avoid execution falling into new page. */
45 int ppc476_workaround;
46 unsigned int pagesize_p2;
48 /* The bfd backend detected a non-PIC reference to a protected symbol
49 defined in a shared library. */
50 int pic_fixup;
52 /* Relocate 16A relocs as 16D and vice versa. */
53 int vle_reloc_fixup;
55 bfd_vma pagesize;
58 void ppc_elf_link_params (struct bfd_link_info *, struct ppc_elf_params *);
59 int ppc_elf_select_plt_layout (bfd *, struct bfd_link_info *);
60 asection *ppc_elf_tls_setup (bfd *, struct bfd_link_info *);
61 bfd_boolean ppc_elf_tls_optimize (bfd *, struct bfd_link_info *);
62 void ppc_elf_maybe_strip_sdata_syms (struct bfd_link_info *);
63 extern bfd_boolean ppc_elf_modify_segment_map (bfd *,
64 struct bfd_link_info * ATTRIBUTE_UNUSED);
65 extern bfd_boolean ppc_elf_section_processing (bfd *, Elf_Internal_Shdr *);