bfd/
[deliverable/binutils-gdb.git] / bfd / elfxx-mips.h
index 85cbfb842c8e2ac91c71670cd1764ff0da43cdd8..8cb7e3b842433544bbf47aa3a04f765eb2a0af8a 100644 (file)
@@ -82,6 +82,8 @@ extern void _bfd_mips_elf_copy_indirect_symbol
    struct elf_link_hash_entry *);
 extern bfd_boolean _bfd_mips_elf_ignore_discarded_relocs
   (asection *);
+extern bfd_boolean _bfd_mips_elf_is_target_special_symbol
+  (bfd *abfd, asymbol *sym);
 extern bfd_boolean _bfd_mips_elf_find_nearest_line
   (bfd *, asection *, asymbol **, bfd_vma, const char **,
    const char **, unsigned int *);
@@ -92,6 +94,9 @@ extern bfd_boolean _bfd_mips_elf_set_section_contents
 extern bfd_byte *_bfd_elf_mips_get_relocated_section_contents
   (bfd *, struct bfd_link_info *, struct bfd_link_order *,
    bfd_byte *, bfd_boolean, asymbol **);
+extern bfd_boolean _bfd_mips_elf_relax_section
+  (bfd *abfd, asection *sec, struct bfd_link_info *link_info,
+   bfd_boolean *again);
 extern struct bfd_link_hash_table *_bfd_mips_elf_link_hash_table_create
   (bfd *);
 extern struct bfd_link_hash_table *_bfd_mips_vxworks_link_hash_table_create
@@ -111,9 +116,9 @@ extern bfd_boolean _bfd_mips_elf_write_section
 
 extern bfd_boolean _bfd_mips_elf_read_ecoff_info
   (bfd *, asection *, struct ecoff_debug_info *);
-extern void _bfd_mips16_elf_reloc_unshuffle
+extern void _bfd_mips_elf_reloc_unshuffle
   (bfd *, int, bfd_boolean, bfd_byte *);
-extern void _bfd_mips16_elf_reloc_shuffle
+extern void _bfd_mips_elf_reloc_shuffle
   (bfd *, int, bfd_boolean, bfd_byte *);
 extern bfd_reloc_status_type _bfd_mips_elf_gprel16_with_gp
   (bfd *, asymbol *, arelent *, asection *, bfd_boolean, void *, bfd_vma);
@@ -155,7 +160,16 @@ extern bfd_boolean _bfd_mips_elf_common_definition (Elf_Internal_Sym *);
 static inline bfd_boolean
 gprel16_reloc_p (unsigned int r_type)
 {
-  return r_type == R_MIPS_GPREL16 || r_type == R_MIPS16_GPREL;
+  return (r_type == R_MIPS_GPREL16
+         || r_type == R_MIPS16_GPREL
+         || r_type == R_MICROMIPS_GPREL16
+         || r_type == R_MICROMIPS_GPREL7_S2);
+}
+
+static inline bfd_boolean
+literal_reloc_p (int r_type)
+{
+  return r_type == R_MIPS_LITERAL || r_type == R_MICROMIPS_LITERAL;
 }
 
 #define elf_backend_common_definition   _bfd_mips_elf_common_definition
This page took 0.025821 seconds and 4 git commands to generate.