aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-05-30 14:29:27 +0000
committerAlan Modra <amodra@gmail.com>2007-05-30 14:29:27 +0000
commit42bb2e3317a7ff36fff57469b1303775a8ab1242 (patch)
tree5e5d6156ce01a3e646f6a9371fb40b1e5b75fa98 /binutils/readelf.c
parent02bf8d82b539bf6c1cb8d4f7b12449930e94d431 (diff)
downloadfsf-binutils-gdb-42bb2e3317a7ff36fff57469b1303775a8ab1242.zip
fsf-binutils-gdb-42bb2e3317a7ff36fff57469b1303775a8ab1242.tar.gz
fsf-binutils-gdb-42bb2e3317a7ff36fff57469b1303775a8ab1242.tar.bz2
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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 14dbb52..165aa61 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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;