]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/elf32-ppc.h
[PATCH] fix windmc typedef bug
[thirdparty/binutils-gdb.git] / bfd / elf32-ppc.h
CommitLineData
7619e7c7 1/* PowerPC-specific support for 64-bit ELF.
b3adc24a 2 Copyright (C) 2003-2020 Free Software Foundation, Inc.
7619e7c7 3
cd123cb7 4 This file is part of BFD, the Binary File Descriptor library.
7619e7c7 5
cd123cb7
NC
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.
7619e7c7 10
cd123cb7
NC
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.
7619e7c7 15
cd123cb7
NC
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. */
7619e7c7 20
cd123cb7
NC
21enum ppc_elf_plt_type
22{
016687f8
AM
23 PLT_UNSET,
24 PLT_OLD,
25 PLT_NEW,
26 PLT_VXWORKS
27};
28
5446cbdf
AM
29/* Various options passed from the linker to bfd backend. */
30struct ppc_elf_params
31{
32 /* Chooses the type of .plt. */
33 enum ppc_elf_plt_type plt_style;
34
9e390558
AM
35 /* Set if individual PLT call stubs should be aligned. */
36 int plt_stub_align;
37
5446cbdf
AM
38 /* Whether to emit symbols for stubs. */
39 int emit_stub_syms;
40
41 /* Whether to emit special stub for __tls_get_addr calls. */
42 int no_tls_get_addr_opt;
43
44 /* Insert trampolines for branches that won't reach their destination. */
45 int branch_trampolines;
46
47 /* Avoid execution falling into new page. */
48 int ppc476_workaround;
795bc6b3 49 unsigned int pagesize_p2;
d3e454b9
AM
50
51 /* The bfd backend detected a non-PIC reference to a protected symbol
52 defined in a shared library. */
53 int pic_fixup;
76e7a751 54
08dc996f
AM
55 /* Relocate 16A relocs as 16D and vice versa. */
56 int vle_reloc_fixup;
57
76e7a751 58 bfd_vma pagesize;
5446cbdf
AM
59};
60
61void ppc_elf_link_params (struct bfd_link_info *, struct ppc_elf_params *);
62int ppc_elf_select_plt_layout (bfd *, struct bfd_link_info *);
3e04d765 63bfd_boolean ppc_elf_inline_plt (struct bfd_link_info *);
5446cbdf 64asection *ppc_elf_tls_setup (bfd *, struct bfd_link_info *);
55fd94b0 65bfd_boolean ppc_elf_tls_optimize (bfd *, struct bfd_link_info *);
93d1b056 66void ppc_elf_maybe_strip_sdata_syms (struct bfd_link_info *);
49c09209 67extern bfd_boolean ppc_elf_modify_segment_map (bfd *, struct bfd_link_info *);
b9c361e0 68extern bfd_boolean ppc_elf_section_processing (bfd *, Elf_Internal_Shdr *);
49c09209 69extern bfd_boolean ppc_finish_symbols (struct bfd_link_info *);