Properly define elf_backend_post_process_headers.
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 25 Jun 2011 18:03:03 +0000 (18:03 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 25 Jun 2011 18:03:03 +0000 (18:03 +0000)
2011-06-25  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (elf_backend_post_process_headers): Don't
define for FreeBSD/x86-64 nor FreeBSD/L1OM.  Define for L1OM.

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

index b3ffc1bb7916d1e4b2135b9bf4d67b342762ec8e..58bf9934a85eb2a6d154b33a32900ed86199f022 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c (elf_backend_post_process_headers): Don't
+       define for FreeBSD/x86-64 nor FreeBSD/L1OM.  Define for L1OM.
+
 2011-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Initialize
index 9ae81bfe73b5fda8c2ec86137d422a8bc2d286ab..ca480ab32e02f41d07692531f47cc5f00029e064 100644 (file)
@@ -4958,6 +4958,8 @@ static const struct bfd_elf_special_section
 #undef  elf64_bed
 #define elf64_bed elf64_x86_64_fbsd_bed
 
+#undef  elf_backend_post_process_headers
+
 #include "elf64-target.h"
 
 /* Solaris 2 support.  */
@@ -5017,6 +5019,8 @@ elf64_l1om_elf_object_p (bfd *abfd)
 #define elf_backend_object_p               elf64_l1om_elf_object_p
 
 #undef  elf_backend_post_process_headers
+#define elf_backend_post_process_headers    _bfd_elf_set_osabi
+
 #undef  elf_backend_static_tls_alignment
 
 #undef elf_backend_want_plt_sym
@@ -5038,7 +5042,6 @@ elf64_l1om_elf_object_p (bfd *abfd)
 #define elf64_bed elf64_l1om_fbsd_bed
 
 #undef  elf_backend_post_process_headers
-#define elf_backend_post_process_headers  _bfd_elf_set_osabi
 
 #include "elf64-target.h"
 
@@ -5077,6 +5080,7 @@ elf32_x86_64_elf_object_p (bfd *abfd)
 #undef ELF_OSABI
 
 #undef elf_backend_post_process_headers
+#define elf_backend_post_process_headers    _bfd_elf_set_osabi
 
 #undef elf_backend_object_p
 #define elf_backend_object_p \
@@ -5090,7 +5094,4 @@ elf32_x86_64_elf_object_p (bfd *abfd)
 #define elf_backend_size_info \
   _bfd_elf32_size_info
 
-#undef  elf_backend_post_process_headers
-#define elf_backend_post_process_headers  _bfd_elf_set_osabi
-
 #include "elf32-target.h"