mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
bfd/
* 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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user