From e1fddb6bac499eebb8c6100267cd69da571323bd Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 8 Jan 2002 16:42:57 +0000 Subject: [PATCH] * elf.c (elf_fake_sections): Propagate errors from elf_backend_fake_section. --- bfd/ChangeLog | 5 +++++ bfd/elf.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 08b1c070a83..168ba0dc882 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-01-08 Alexandre Oliva + + * elf.c (elf_fake_sections): Propagate errors from + elf_backend_fake_section. + 2002-01-07 Jason Thorpe * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo. diff --git a/bfd/elf.c b/bfd/elf.c index 92b60071dc5..4e6747e8773 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -1,5 +1,5 @@ /* ELF executable support for BFD. - Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 + Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -2213,8 +2213,9 @@ elf_fake_sections (abfd, asect, failedptrarg) this_hdr->sh_flags |= SHF_GROUP; /* Check for processor-specific section types. */ - if (bed->elf_backend_fake_sections) - (*bed->elf_backend_fake_sections) (abfd, this_hdr, asect); + if (bed->elf_backend_fake_sections + && !(*bed->elf_backend_fake_sections) (abfd, this_hdr, asect)) + *failedptr = true; /* If the section has relocs, set up a section header for the SHT_REL[A] section. If two relocation sections are required for -- 2.30.2