From: H.J. Lu Date: Sat, 25 Jun 2011 18:03:03 +0000 (+0000) Subject: Properly define elf_backend_post_process_headers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d43039962998186e46ced27128bbee4d7d68a3a;p=binutils-gdb.git Properly define elf_backend_post_process_headers. 2011-06-25 H.J. Lu * elf64-x86-64.c (elf_backend_post_process_headers): Don't define for FreeBSD/x86-64 nor FreeBSD/L1OM. Define for L1OM. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b3ffc1bb791..58bf9934a85 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-06-25 H.J. Lu + + * 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 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Initialize diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 9ae81bfe73b..ca480ab32e0 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -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"