* elf.c (elf_fake_sections): Propagate errors from

elf_backend_fake_section.
This commit is contained in:
Alexandre Oliva
2002-01-08 16:42:57 +00:00
parent ea2119ec84
commit e1fddb6bac
2 changed files with 9 additions and 3 deletions

View File

@ -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> 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
* Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo. * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.

View File

@ -1,5 +1,5 @@
/* ELF executable support for BFD. /* 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. Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library. 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; this_hdr->sh_flags |= SHF_GROUP;
/* Check for processor-specific section types. */ /* Check for processor-specific section types. */
if (bed->elf_backend_fake_sections) if (bed->elf_backend_fake_sections
(*bed->elf_backend_fake_sections) (abfd, this_hdr, asect); && !(*bed->elf_backend_fake_sections) (abfd, this_hdr, asect))
*failedptr = true;
/* If the section has relocs, set up a section header for the /* If the section has relocs, set up a section header for the
SHT_REL[A] section. If two relocation sections are required for SHT_REL[A] section. If two relocation sections are required for