Commit | Line | Data |
---|---|---|
aa137e4d | 1 | /* TILE-Gx ELF specific backend routines. |
4b95cf5c | 2 | Copyright (C) 2011-2014 Free Software Foundation, Inc. |
aa137e4d NC |
3 | |
4 | This file is part of BFD, the Binary File Descriptor library. | |
5 | ||
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. | |
10 | ||
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. | |
15 | ||
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. */ | |
20 | ||
21 | #include "elf/common.h" | |
22 | #include "elf/internal.h" | |
23 | ||
24 | extern enum elf_reloc_type_class | |
7e612e98 AM |
25 | tilegx_reloc_type_class (const struct bfd_link_info *, |
26 | const asection *, | |
27 | const Elf_Internal_Rela *); | |
aa137e4d NC |
28 | |
29 | extern reloc_howto_type * | |
30 | tilegx_reloc_name_lookup (bfd *, const char *); | |
31 | ||
32 | extern struct bfd_link_hash_table * | |
33 | tilegx_elf_link_hash_table_create (bfd *); | |
34 | ||
35 | extern reloc_howto_type * | |
36 | tilegx_reloc_type_lookup (bfd *, bfd_reloc_code_real_type); | |
37 | ||
38 | extern void | |
39 | tilegx_elf_copy_indirect_symbol (struct bfd_link_info *, | |
40 | struct elf_link_hash_entry *, | |
41 | struct elf_link_hash_entry *); | |
42 | ||
43 | extern bfd_boolean | |
44 | tilegx_elf_create_dynamic_sections (bfd *, struct bfd_link_info *); | |
45 | ||
46 | extern bfd_boolean | |
47 | tilegx_elf_check_relocs (bfd *, struct bfd_link_info *, | |
48 | asection *, const Elf_Internal_Rela *); | |
49 | ||
50 | extern bfd_boolean | |
51 | tilegx_elf_adjust_dynamic_symbol (struct bfd_link_info *, | |
52 | struct elf_link_hash_entry *); | |
53 | ||
54 | extern bfd_boolean | |
55 | tilegx_elf_omit_section_dynsym (bfd *, | |
56 | struct bfd_link_info *, | |
57 | asection *); | |
58 | ||
59 | extern bfd_boolean | |
60 | tilegx_elf_size_dynamic_sections (bfd *, struct bfd_link_info *); | |
61 | ||
62 | extern bfd_boolean | |
63 | tilegx_elf_relocate_section (bfd *, struct bfd_link_info *, | |
64 | bfd *, asection *, | |
65 | bfd_byte *, Elf_Internal_Rela *, | |
66 | Elf_Internal_Sym *, | |
67 | asection **); | |
68 | ||
69 | extern asection * | |
70 | tilegx_elf_gc_mark_hook (asection *, | |
71 | struct bfd_link_info *, | |
72 | Elf_Internal_Rela *, | |
73 | struct elf_link_hash_entry *, | |
74 | Elf_Internal_Sym *); | |
75 | ||
76 | extern bfd_boolean | |
77 | tilegx_elf_gc_sweep_hook (bfd *, struct bfd_link_info *, | |
78 | asection *, const Elf_Internal_Rela *); | |
79 | ||
80 | extern bfd_vma | |
81 | tilegx_elf_plt_sym_val (bfd_vma, const asection *, const arelent *); | |
82 | ||
83 | extern void | |
84 | tilegx_info_to_howto_rela (bfd *, arelent *, Elf_Internal_Rela *); | |
85 | ||
86 | extern int | |
87 | tilegx_additional_program_headers (bfd *, struct bfd_link_info *); | |
88 | ||
89 | extern bfd_boolean | |
90 | tilegx_elf_finish_dynamic_symbol (bfd *, | |
91 | struct bfd_link_info *, | |
92 | struct elf_link_hash_entry *, | |
93 | Elf_Internal_Sym *); | |
94 | ||
95 | extern bfd_boolean | |
96 | tilegx_elf_finish_dynamic_sections (bfd *, struct bfd_link_info *); | |
97 | ||
98 | extern bfd_boolean | |
99 | _bfd_tilegx_elf_merge_private_bfd_data (bfd *, bfd *); |