Back to index

cell-binutils  2.17cvs20070401
elfxx-mips.h
Go to the documentation of this file.
00001 /* MIPS ELF specific backend routines.
00002    Copyright 2002, 2003, 2004, 2005, 2006
00003    Free Software Foundation, Inc.
00004 
00005 This file is part of BFD, the Binary File Descriptor library.
00006 
00007 This program is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as published by
00009 the Free Software Foundation; either version 2 of the License, or
00010 (at your option) any later version.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #include "elf/common.h"
00022 #include "elf/internal.h"
00023 
00024 extern bfd_boolean _bfd_mips_elf_new_section_hook
00025   (bfd *, asection *);
00026 extern void _bfd_mips_elf_symbol_processing
00027   (bfd *, asymbol *);
00028 extern unsigned int _bfd_mips_elf_eh_frame_address_size
00029   (bfd *, asection *);
00030 extern bfd_boolean _bfd_mips_elf_name_local_section_symbols
00031   (bfd *);
00032 extern bfd_boolean _bfd_mips_elf_section_processing
00033   (bfd *, Elf_Internal_Shdr *);
00034 extern bfd_boolean _bfd_mips_elf_section_from_shdr
00035   (bfd *, Elf_Internal_Shdr *, const char *, int);
00036 extern bfd_boolean _bfd_mips_elf_fake_sections
00037   (bfd *, Elf_Internal_Shdr *, asection *);
00038 extern bfd_boolean _bfd_mips_elf_section_from_bfd_section
00039   (bfd *, asection *, int *);
00040 extern bfd_boolean _bfd_mips_elf_add_symbol_hook
00041   (bfd *, struct bfd_link_info *, Elf_Internal_Sym *,
00042    const char **, flagword *, asection **, bfd_vma *);
00043 extern bfd_boolean _bfd_mips_elf_link_output_symbol_hook
00044   (struct bfd_link_info *, const char *, Elf_Internal_Sym *,
00045    asection *, struct elf_link_hash_entry *);
00046 extern bfd_boolean _bfd_mips_elf_create_dynamic_sections
00047   (bfd *, struct bfd_link_info *);
00048 extern bfd_boolean _bfd_mips_elf_check_relocs
00049   (bfd *, struct bfd_link_info *, asection *, const Elf_Internal_Rela *);
00050 extern bfd_boolean _bfd_mips_elf_adjust_dynamic_symbol
00051   (struct bfd_link_info *, struct elf_link_hash_entry *);
00052 extern bfd_boolean _bfd_mips_vxworks_adjust_dynamic_symbol
00053   (struct bfd_link_info *, struct elf_link_hash_entry *);
00054 extern bfd_boolean _bfd_mips_elf_always_size_sections
00055   (bfd *, struct bfd_link_info *);
00056 extern bfd_boolean _bfd_mips_elf_size_dynamic_sections
00057   (bfd *, struct bfd_link_info *);
00058 extern bfd_boolean _bfd_mips_elf_relocate_section
00059   (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
00060    Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
00061 extern bfd_boolean _bfd_mips_elf_finish_dynamic_symbol
00062   (bfd *, struct bfd_link_info *, struct elf_link_hash_entry *,
00063    Elf_Internal_Sym *);
00064 extern bfd_boolean _bfd_mips_vxworks_finish_dynamic_symbol
00065   (bfd *, struct bfd_link_info *, struct elf_link_hash_entry *,
00066    Elf_Internal_Sym *);
00067 extern bfd_boolean _bfd_mips_elf_finish_dynamic_sections
00068   (bfd *, struct bfd_link_info *);
00069 extern void _bfd_mips_elf_final_write_processing
00070   (bfd *, bfd_boolean);
00071 extern int _bfd_mips_elf_additional_program_headers
00072   (bfd *, struct bfd_link_info *);
00073 extern bfd_boolean _bfd_mips_elf_modify_segment_map
00074   (bfd *, struct bfd_link_info *);
00075 extern asection * _bfd_mips_elf_gc_mark_hook
00076   (asection *, struct bfd_link_info *, Elf_Internal_Rela *,
00077    struct elf_link_hash_entry *, Elf_Internal_Sym *);
00078 extern bfd_boolean _bfd_mips_elf_gc_sweep_hook
00079   (bfd *, struct bfd_link_info *, asection *, const Elf_Internal_Rela *);
00080 extern void _bfd_mips_elf_copy_indirect_symbol
00081   (struct bfd_link_info *, struct elf_link_hash_entry *,
00082    struct elf_link_hash_entry *);
00083 extern void _bfd_mips_elf_hide_symbol
00084   (struct bfd_link_info *, struct elf_link_hash_entry *, bfd_boolean);
00085 extern bfd_boolean _bfd_mips_elf_ignore_discarded_relocs
00086   (asection *);
00087 extern bfd_boolean _bfd_mips_elf_find_nearest_line
00088   (bfd *, asection *, asymbol **, bfd_vma, const char **,
00089    const char **, unsigned int *);
00090 extern bfd_boolean _bfd_mips_elf_find_inliner_info
00091   (bfd *, const char **, const char **, unsigned int *);
00092 extern bfd_boolean _bfd_mips_elf_set_section_contents
00093   (bfd *, asection *, const void *, file_ptr, bfd_size_type);
00094 extern bfd_byte *_bfd_elf_mips_get_relocated_section_contents
00095   (bfd *, struct bfd_link_info *, struct bfd_link_order *,
00096    bfd_byte *, bfd_boolean, asymbol **);
00097 extern struct bfd_link_hash_table *_bfd_mips_elf_link_hash_table_create
00098   (bfd *);
00099 extern struct bfd_link_hash_table *_bfd_mips_vxworks_link_hash_table_create
00100   (bfd *);
00101 extern bfd_boolean _bfd_mips_elf_final_link
00102   (bfd *, struct bfd_link_info *);
00103 extern bfd_boolean _bfd_mips_elf_merge_private_bfd_data
00104   (bfd *, bfd *);
00105 extern bfd_boolean _bfd_mips_elf_set_private_flags
00106   (bfd *, flagword);
00107 extern bfd_boolean _bfd_mips_elf_print_private_bfd_data
00108   (bfd *, void *);
00109 extern bfd_boolean _bfd_mips_elf_discard_info
00110   (bfd *, struct elf_reloc_cookie *, struct bfd_link_info *);
00111 extern bfd_boolean _bfd_mips_elf_write_section
00112   (bfd *, struct bfd_link_info *, asection *, bfd_byte *);
00113 
00114 extern bfd_boolean _bfd_mips_elf_read_ecoff_info
00115   (bfd *, asection *, struct ecoff_debug_info *);
00116 extern void _bfd_mips16_elf_reloc_unshuffle
00117   (bfd *, int, bfd_boolean, bfd_byte *);
00118 extern void _bfd_mips16_elf_reloc_shuffle
00119   (bfd *, int, bfd_boolean, bfd_byte *);
00120 extern bfd_reloc_status_type _bfd_mips_elf_gprel16_with_gp
00121   (bfd *, asymbol *, arelent *, asection *, bfd_boolean, void *, bfd_vma);
00122 extern bfd_reloc_status_type _bfd_mips_elf32_gprel16_reloc
00123   (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
00124 extern bfd_reloc_status_type _bfd_mips_elf_hi16_reloc
00125   (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
00126 extern bfd_reloc_status_type _bfd_mips_elf_got16_reloc
00127   (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
00128 extern bfd_reloc_status_type _bfd_mips_elf_lo16_reloc
00129   (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
00130 extern bfd_reloc_status_type _bfd_mips_elf_generic_reloc
00131   (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
00132 extern unsigned long _bfd_elf_mips_mach
00133   (flagword);
00134 extern bfd_boolean _bfd_mips_relax_section
00135   (bfd *, asection *, struct bfd_link_info *, bfd_boolean *);
00136 extern bfd_vma _bfd_mips_elf_sign_extend
00137   (bfd_vma, int);
00138 extern void _bfd_mips_elf_merge_symbol_attribute
00139   (struct elf_link_hash_entry *, const Elf_Internal_Sym *, bfd_boolean, bfd_boolean);
00140 extern bfd_boolean _bfd_mips_elf_ignore_undef_symbol
00141   (struct elf_link_hash_entry *);
00142 
00143 extern const struct bfd_elf_special_section _bfd_mips_elf_special_sections [];
00144 
00145 extern bfd_boolean _bfd_mips_elf_common_definition (Elf_Internal_Sym *);
00146 
00147 #define elf_backend_common_definition   _bfd_mips_elf_common_definition
00148 #define elf_backend_name_local_section_symbols \
00149   _bfd_mips_elf_name_local_section_symbols
00150 #define elf_backend_special_sections _bfd_mips_elf_special_sections
00151 #define elf_backend_eh_frame_address_size _bfd_mips_elf_eh_frame_address_size
00152 #define elf_backend_merge_symbol_attribute  _bfd_mips_elf_merge_symbol_attribute
00153 #define elf_backend_ignore_undef_symbol _bfd_mips_elf_ignore_undef_symbol