Commit: objcopy: Add --dump-section option
Nick Clifton
nickc@redhat.com
Tue Dec 31 09:54:00 GMT 2013
Hi Guys,
I am applying the attached patch to add a new command line option to
objcopy: --dump-section. This option is the inverse of --add-section
in that it dumps the contents of a specified section to a specified
file. The dump is just a raw copy of the contents of the section. It
is not formatted in any way. This is useful if the section cannot be
copied via the --only-section option, or if it needs to be passed to a
--add-section option later on.
Cheers
Nick
binutils/ChangeLog
2013-12-31 Nick Clifton <nickc@redhat.com>
* objcopy.c (dump_sections): New list.
(command_line_switch): Add OPTION_DUMP_SECTION.
(copy_options): Add dump-section.
(copy_usage): Document new option.
(copy_object): Dump requested sections.
(copy_main): Handle --dump-section.
* doc/binutils.texi: Document --dump-section option.
* NEWS: Mention new feature.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: objcopy.patch.xz
Type: application/x-xz
Size: 2236 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20131231/55176d51/attachment.xz>
More information about the Binutils
mailing list