This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Display file offsets in objdump
- From: Nick Clifton <nickc at redhat dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 22 Feb 2008 09:42:23 +0000
- Subject: Re: PATCH: Display file offsets in objdump
- References: <y10odaais48.fsf@redhat.com>
Hi Guys,
I am going to apply the attached patch to add a new feature to
objdump. The idea, suggested by RMS, is to have the ability to
see the file offsets of the data being displayed, so that overlaps
can be detected, and to help anyone who wants to look at the file's
contents in a hex editor.
I forgot to include the ChangeLog entry, so here it is.
Cheers
Nick
binutils/ChangeLog
2008-02-22 Nick Clifton <nickc@redhat.com>
* objdump.c (display_file_offsets): New variable.
(long_options): Add -F/--file-offsets.
(objdump_print_addr_with_sym): If displaying file offsets, print
the offset of the given address.
(disassemble_bytes): If displaying file offsets, tell the user how
many zeroes are skipped and the file offset of the point where
dumping resumes.
(disassemble_section): Only display the name of the section if
data is going to be dumped from it.
(main): Handle new option. Produce error messages if the start or
stop addresses do not make sense.
* doc/binutils.texi: Document the new feature.
* NEWS: Mention the new feature.