aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-01-08 16:42:57 +0000
committerAlexandre Oliva <aoliva@redhat.com>2002-01-08 16:42:57 +0000
commite1fddb6bac499eebb8c6100267cd69da571323bd (patch)
tree687267bccb0abcf9836b7d8b0fbe0fd410d9a076 /bfd
parentea2119ec842476c6f6704c9754749f19334a377f (diff)
downloadfsf-binutils-gdb-e1fddb6bac499eebb8c6100267cd69da571323bd.zip
fsf-binutils-gdb-e1fddb6bac499eebb8c6100267cd69da571323bd.tar.gz
fsf-binutils-gdb-e1fddb6bac499eebb8c6100267cd69da571323bd.tar.bz2
* elf.c (elf_fake_sections): Propagate errors from
elf_backend_fake_section.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 08b1c07..168ba0d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-08 Alexandre Oliva <aoliva@redhat.com>
+
+ * elf.c (elf_fake_sections): Propagate errors from
+ elf_backend_fake_section.
+
2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
* Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
diff --git a/bfd/elf.c b/bfd/elf.c
index 92b6007..4e6747e 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