* 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.
This commit is contained in:
parent
f736769e93
commit
98ec6e7266
4 changed files with 57 additions and 5 deletions
|
@ -11,7 +11,7 @@
|
|||
@copying
|
||||
@c man begin COPYRIGHT
|
||||
Copyright @copyright{} 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
|
||||
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the GNU Free Documentation License, Version 1.2
|
||||
|
@ -1572,6 +1572,7 @@ objdump [@option{-a}|@option{--archive-headers}]
|
|||
[@option{-z}|@option{--disassemble-zeroes}]
|
||||
[@option{-EB}|@option{-EL}|@option{--endian=}@{big | little @}]
|
||||
[@option{-f}|@option{--file-headers}]
|
||||
[@option{-F}|@option{--file-offsets}]
|
||||
[@option{--file-start-context}]
|
||||
[@option{-g}|@option{--debugging}]
|
||||
[@option{-e}|@option{--debugging-tags}]
|
||||
|
@ -1715,6 +1716,15 @@ does not describe endianness information, such as S-records.
|
|||
Display summary information from the overall header of
|
||||
each of the @var{objfile} files.
|
||||
|
||||
@item -F
|
||||
@itemx --file-offsets
|
||||
@cindex object file offsets
|
||||
When disassembling sections, whenever a symbol is displayed, also
|
||||
display the file offset of the region of data that is about to be
|
||||
dumped. If zeroes are being skipped, then when disassembly resumes,
|
||||
tell the user how many zeroes were skipped and the file offset of the
|
||||
location from where the disassembly resumes.
|
||||
|
||||
@item --file-start-context
|
||||
@cindex source code context
|
||||
Specify that when displaying interlisted source code/disassembly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue