1 /* 32-bit ELF support for S+core.
2 Copyright (C) 2009-2017 Free Software Foundation, Inc.
4 Brain.lin (brain.lin@sunplusct.com)
5 Mei Ligang (ligang@sunnorth.com.cn)
6 Pei-Lin Tsai (pltsai@sunplus.com)
8 This file is part of BFD, the Binary File Descriptor library.
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
23 MA 02110-1301, USA. */
25 #include "elf/common.h"
26 #include "elf/internal.h"
29 s7_bfd_score_elf_hide_symbol (struct bfd_link_info
*,
30 struct elf_link_hash_entry
*,
34 s7_bfd_score_info_to_howto (bfd
*, arelent
*, Elf_Internal_Rela
*);
37 s7_bfd_score_elf_relocate_section (bfd
*,
38 struct bfd_link_info
*,
47 s7_bfd_score_elf_check_relocs (bfd
*,
48 struct bfd_link_info
*,
50 const Elf_Internal_Rela
*);
53 s7_bfd_score_elf_add_symbol_hook (bfd
*,
54 struct bfd_link_info
*,
62 s7_bfd_score_elf_symbol_processing (bfd
*, asymbol
*);
65 s7_bfd_score_elf_link_output_symbol_hook (struct bfd_link_info
*,
69 struct elf_link_hash_entry
*);
72 s7_bfd_score_elf_section_from_bfd_section (bfd
*,
77 s7_bfd_score_elf_adjust_dynamic_symbol (struct bfd_link_info
*,
78 struct elf_link_hash_entry
*);
81 s7_bfd_score_elf_always_size_sections (bfd
*, struct bfd_link_info
*);
84 s7_bfd_score_elf_size_dynamic_sections (bfd
*, struct bfd_link_info
*);
87 s7_bfd_score_elf_create_dynamic_sections (bfd
*, struct bfd_link_info
*);
90 s7_bfd_score_elf_finish_dynamic_symbol (bfd
*,
91 struct bfd_link_info
*,
92 struct elf_link_hash_entry
*,
96 s7_bfd_score_elf_finish_dynamic_sections (bfd
*, struct bfd_link_info
*);
99 s7_bfd_score_elf_fake_sections (bfd
*,
104 s7_bfd_score_elf_section_processing (bfd
*, Elf_Internal_Shdr
*);
107 s7_bfd_score_elf_write_section (bfd
*, asection
*, bfd_byte
*);
110 s7_bfd_score_elf_copy_indirect_symbol (struct bfd_link_info
*,
111 struct elf_link_hash_entry
*,
112 struct elf_link_hash_entry
*);
115 s7_bfd_score_elf_discard_info (bfd
*, struct elf_reloc_cookie
*,
116 struct bfd_link_info
*);
119 s7_bfd_score_elf_ignore_discarded_relocs (asection
*);
122 s7_bfd_score_elf_gc_mark_hook (asection
*,
123 struct bfd_link_info
*,
125 struct elf_link_hash_entry
*,
129 s7_bfd_score_elf_grok_prstatus (bfd
*, Elf_Internal_Note
*);
132 s7_bfd_score_elf_grok_psinfo (bfd
*, Elf_Internal_Note
*);
134 extern reloc_howto_type
*
135 s7_elf32_score_reloc_type_lookup (bfd
*, bfd_reloc_code_real_type
);
137 extern struct bfd_link_hash_table
*
138 s7_elf32_score_link_hash_table_create (bfd
*);
141 s7_elf32_score_print_private_bfd_data (bfd
*, void *);
144 s7_elf32_score_merge_private_bfd_data (bfd
*, struct bfd_link_info
*);
147 s7_elf32_score_new_section_hook (bfd
*, asection
*);
150 _bfd_score_elf_common_definition (Elf_Internal_Sym
*);
152 #define elf_backend_common_definition _bfd_score_elf_common_definition