* elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections
	created by objcopy --only-keep-debug.
	(_bfd_elf_init_private_section_data): Only change elf_section_type
	if it is SHT_NULL.
binutils/
	* objcopy.c (copy_object): Revert 2007-05-11 change.  Don't
	avoid calling bfd_copy_private_bfd_data for ELF STRIP_NONDEBUG.
	(setup_section): Don't modify flags, and don't avoid calling
	bfd_copy_private_section_data for ELF STRIP_NONDEBUG.
	* readelf.c (process_program_headers): Ignore .dynamic of type
	SHT_NOBITS.
This commit is contained in:
Alan Modra
2007-05-30 14:29:27 +00:00
parent 02bf8d82b5
commit 42bb2e3317
5 changed files with 28 additions and 29 deletions

View File

@@ -3516,6 +3516,9 @@ process_program_headers (FILE *file)
break;
}
if (sec->sh_type == SHT_NOBITS)
break;
dynamic_addr = sec->sh_offset;
dynamic_size = sec->sh_size;