2005-04-13  Daniel Jacobowitz  <dan@codesourcery.com>

	* elflink.c (elf_link_input_bfd): Update check for removed
	sections.

ld/testsuite/

2005-04-13  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-elf/empty.d: New file.
	* ld-elf/empty.s: Likewise.
This commit is contained in:
H.J. Lu
2005-04-13 16:44:08 +00:00
parent 776dbd277f
commit e75a280b02
5 changed files with 32 additions and 0 deletions

View File

@@ -6869,6 +6869,11 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
&& (isec->flags & SEC_EXCLUDE) != 0)))
continue;
/* If the section is not in the output BFD's section list, it is not
being output. */
if (bfd_section_removed_from_list (output_bfd, isec->output_section))
continue;
/* Get the name of the symbol. */
name = bfd_elf_string_from_elf_section (input_bfd, symtab_hdr->sh_link,
isym->st_name);