Add elf_x86_64_relocs_compatible.
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 31 Dec 2010 00:34:59 +0000 (00:34 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 31 Dec 2010 00:34:59 +0000 (00:34 +0000)
2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (elf_x86_64_relocs_compatible): New.
(elf_backend_relocs_compatible): Defined to
elf_x86_64_relocs_compatible.

bfd/ChangeLog
bfd/elf64-x86-64.c

index 78ba6d6cb72a53566bb240fdddb7a5b13608d73b..fc4e5a39a7b1012cd763a934e842c5d01f92e079 100644 (file)
@@ -1,3 +1,9 @@
+2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c (elf_x86_64_relocs_compatible): New.
+       (elf_backend_relocs_compatible): Defined to
+       elf_x86_64_relocs_compatible.
+
 2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
 
        * archures.c (bfd_mach_x64_32): New.
index a50dccccd133a102be170f98aa0a4f4576d87433..3dd16ba123a90c7184d3fd1729953efa880f5c67 100644 (file)
@@ -4496,6 +4496,17 @@ elf_x86_64_hash_symbol (struct elf_link_hash_entry *h)
   return _bfd_elf_hash_symbol (h);
 }
 
+/* Return TRUE iff relocations for INPUT are compatible with OUTPUT. */
+
+static bfd_boolean
+elf_x86_64_relocs_compatible (const bfd_target *input,
+                             const bfd_target *output)
+{
+  return ((xvec_get_elf_backend_data (input)->s->elfclass
+          == xvec_get_elf_backend_data (output)->s->elfclass)
+         && _bfd_elf_relocs_compatible (input, output));
+}
+
 static const struct bfd_elf_special_section
   elf_x86_64_special_sections[]=
 {
@@ -4536,7 +4547,7 @@ static const struct bfd_elf_special_section
   elf_x86_64_reloc_name_lookup
 
 #define elf_backend_adjust_dynamic_symbol   elf_x86_64_adjust_dynamic_symbol
-#define elf_backend_relocs_compatible      _bfd_elf_relocs_compatible
+#define elf_backend_relocs_compatible      elf_x86_64_relocs_compatible
 #define elf_backend_check_relocs           elf_x86_64_check_relocs
 #define elf_backend_copy_indirect_symbol    elf_x86_64_copy_indirect_symbol
 #define elf_backend_create_dynamic_sections elf_x86_64_create_dynamic_sections
This page took 0.028151 seconds and 4 git commands to generate.