From ccf5f610122ac51c1225370230e72df7fd1d676d Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Tue, 8 Feb 2005 13:33:56 +0000 Subject: [PATCH] 2005-02-08 Paul Brook * elflink.c (elf_link_input_bfd): Ignore symbols from null input sections. --- bfd/ChangeLog | 5 +++++ bfd/elflink.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ecd820db92b..bc6b5852d95 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-02-08 Paul Brook + + * elflink.c (elf_link_input_bfd): Ignore symbols from null input + sections. + 2005-02-08 Hans-Peter Nilsson * elflink.c (elf_link_add_object_symbols): Don't add "warning: " diff --git a/bfd/elflink.c b/bfd/elflink.c index d7c9ded0b18..b8b9af5e2ee 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; -- 2.30.2