From 759388538d1339f6a634b2777e24f46427dd9c96 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 18 Aug 2014 09:33:35 +0930 Subject: Return error status from bfd_elf_discard_info. bfd/ * elflink.c (bfd_elf_discard_info): Return int error status. * stabs.c (_bfd_discard_section_stabs): Comment typo fix. * bfd-in.h (bfd_elf_discard_info): Updata prototype. * bfd-in2.h: Regenerate. ld/ * emultempl/aarch64elf.em (gld${EMULATION_NAME}_after_allocation): Handle error status from bfd_elf_discard_info. * emultempl/armelf.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/metagelf.em: Likewise. * emultempl/nios2elf.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/tic6xdsbt.em: Likewise. * emultempl/vms.em: Likewise. --- ld/emultempl/vms.em | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ld/emultempl/vms.em') diff --git a/ld/emultempl/vms.em b/ld/emultempl/vms.em index b1f61d5..40be66d 100644 --- a/ld/emultempl/vms.em +++ b/ld/emultempl/vms.em @@ -207,9 +207,12 @@ gld${EMULATION_NAME}_before_allocation (void) static void gld${EMULATION_NAME}_after_allocation (void) { - bfd_boolean need_layout = bfd_elf_discard_info (link_info.output_bfd, - &link_info); - gld${EMULATION_NAME}_map_segments (need_layout); + int need_layout = bfd_elf_discard_info (link_info.output_bfd, &link_info); + + if (need_layout < 0) + einfo ("%X%P: .eh_frame/.stab edit: %E\n"); + else + gld${EMULATION_NAME}_map_segments (need_layout); } static void -- cgit v1.1