This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Commit: objcopy: Add --dump-section option


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.

Attachment: objcopy.patch.xz
Description: application/xz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]