PR binutils/12467
authorNick Clifton <nickc@redhat.com>
Tue, 8 Feb 2011 09:40:05 +0000 (09:40 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 8 Feb 2011 09:40:05 +0000 (09:40 +0000)
commit82f2dbf73d32c8c82e62d2073a99da8b1ec03fa1
tree3005705c64e9bb89aa75c953be12568983265bf9
parent84ced98a310603805f69d4d6616e02a196232438
PR binutils/12467
* readelf.c (process_program_headers): Issue a warning if there
are no program headers but the file header has a non-zero program
header offset.
(process_section_headers): Issue a warning if there are no section
headers but the file header has a non-zero section header offset.
(process_section_groups): Reword the no section message so that it
can be distinguished from the one issued by process_section_headers.

* elf.c (assign_file_positions_for_load_sections): Set the program
header offset and entry size to zero if there are no program
headers.
bfd/ChangeLog
bfd/elf.c
binutils/ChangeLog
binutils/readelf.c