diff options
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 18c06c5..8e3ecb6 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2010-07-20 Alan Modra <amodra@gmail.com> + + * readelf.c (process_program_headers): Don't ignore all zero size + sections. + 2010-07-19 Andreas Schwab <schwab@redhat.com> * readelf.c (process_section_headers): Update key to flags. diff --git a/binutils/readelf.c b/binutils/readelf.c index 883c482..447932c 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -3889,8 +3889,8 @@ process_program_headers (FILE * file) for (j = 1; j < elf_header.e_shnum; j++, section++) { - if (ELF_SECTION_SIZE (section, segment) != 0 - && ELF_SECTION_IN_SEGMENT (section, segment)) + if (!ELF_TBSS_SPECIAL (section, segment) + && ELF_SECTION_IN_SEGMENT_STRICT (section, segment)) printf ("%s ", SECTION_NAME (section)); } |