bfd/
[deliverable/binutils-gdb.git] / bfd / elf32-ppc.h
CommitLineData
7619e7c7 1/* PowerPC-specific support for 64-bit ELF.
e1dad58d 2 Copyright 2003, 2005, 2007, 2009, 2012 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
e1dad58d
AM
29/* Rename some of the generic section flags to better document how they
30 are used for ppc32. These macros should be private to elf32-ppc.c,
31 but opcodes/ppc-dis.c needs is_ppc_vle. The flags are only valid
32 for ppc32 elf objects. */
33
34/* Nonzero if this section has TLS related relocations. */
35#define has_tls_reloc sec_flg0
36
37/* Nonzero if this section has a call to __tls_get_addr. */
38#define has_tls_get_addr_call sec_flg1
39
40/* Nonzero if this section has the VLE bit set. */
41#define has_vle_insns sec_flg2
42
43#define is_ppc_vle(SEC) \
44 ((SEC)->owner != NULL \
45 && bfd_get_flavour ((SEC)->owner) == bfd_target_elf_flavour \
46 && elf_object_id ((SEC)->owner) == PPC32_ELF_DATA \
47 && (SEC)->has_vle_insns)
48
016687f8
AM
49int ppc_elf_select_plt_layout (bfd *, struct bfd_link_info *,
50 enum ppc_elf_plt_type, int);
a7f2871e 51asection *ppc_elf_tls_setup (bfd *, struct bfd_link_info *, int);
55fd94b0 52bfd_boolean ppc_elf_tls_optimize (bfd *, struct bfd_link_info *);
42fa7765 53void ppc_elf_set_sdata_syms (bfd *, struct bfd_link_info *);
b9c361e0
JL
54extern bfd_boolean ppc_elf_modify_segment_map (bfd *,
55 struct bfd_link_info * ATTRIBUTE_UNUSED);
56extern bfd_boolean ppc_elf_section_processing (bfd *, Elf_Internal_Shdr *);
This page took 0.467004 seconds and 4 git commands to generate.