aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-visium.c')
-rw-r--r--bfd/elf32-visium.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/bfd/elf32-visium.c b/bfd/elf32-visium.c
index 35e4b84ed14..8721b77666a 100644
--- a/bfd/elf32-visium.c
+++ b/bfd/elf32-visium.c
@@ -722,12 +722,17 @@ visium_elf_gc_mark_hook (asection *sec, struct bfd_link_info *info,
return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym);
}
-static void
-visium_elf_post_process_headers (bfd *abfd,
- struct bfd_link_info *info ATTRIBUTE_UNUSED)
+static bfd_boolean
+visium_elf_init_file_header (bfd *abfd, struct bfd_link_info *info)
{
- Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd);
+ Elf_Internal_Ehdr *i_ehdrp;
+
+ if (!_bfd_elf_init_file_header (abfd, info))
+ return FALSE;
+
+ i_ehdrp = elf_elfheader (abfd);
i_ehdrp->e_ident[EI_ABIVERSION] = 1;
+ return TRUE;
}
/* Function to set the ELF flag bits. */
@@ -873,6 +878,6 @@ visium_elf_print_private_bfd_data (bfd *abfd, void *ptr)
#define bfd_elf32_bfd_copy_private_bfd_data visium_elf_copy_private_bfd_data
#define bfd_elf32_bfd_merge_private_bfd_data visium_elf_merge_private_bfd_data
#define bfd_elf32_bfd_print_private_bfd_data visium_elf_print_private_bfd_data
-#define elf_backend_post_process_headers visium_elf_post_process_headers
+#define elf_backend_init_file_header visium_elf_init_file_header
#include "elf32-target.h"