aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2005-02-08 13:33:56 +0000
committerPaul Brook <paul@codesourcery.com>2005-02-08 13:33:56 +0000
commitccf5f610122ac51c1225370230e72df7fd1d676d (patch)
treeb761a42dbb9843e2a990f79d06426c3017e4bc04 /bfd/elflink.c
parent91294c83865e4e5615803054baf04190c9381def (diff)
downloadgdb-ccf5f610122ac51c1225370230e72df7fd1d676d.zip
gdb-ccf5f610122ac51c1225370230e72df7fd1d676d.tar.gz
gdb-ccf5f610122ac51c1225370230e72df7fd1d676d.tar.bz2
2005-02-08 Paul Brook <paul@codesourcery.com>
* elflink.c (elf_link_input_bfd): Ignore symbols from null input sections.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index d7c9ded..b8b9af5 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -6782,8 +6782,8 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
For the benefit of the MIPS ELF linker, we check SEC_EXCLUDE
as well as linker_mark. */
if ((isym->st_shndx < SHN_LORESERVE || isym->st_shndx > SHN_HIRESERVE)
- && isec != NULL
- && ((! isec->linker_mark && (isec->flags & SEC_HAS_CONTENTS) != 0)
+ && (isec == NULL
+ || (! isec->linker_mark && (isec->flags & SEC_HAS_CONTENTS) != 0)
|| (! finfo->info->relocatable
&& (isec->flags & SEC_EXCLUDE) != 0)))
continue;