diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-02-13 17:04:42 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-02-28 21:25:51 +0000 |
commit | acf1419f9c52d06ee70169b85c5f8980c7359f8f (patch) | |
tree | d8a193b0f2a2411aa63f1cf4a4284c33368cb5df /binutils/ChangeLog | |
parent | b7236fbee40060bcf5e90740a5c5706317749f91 (diff) | |
download | gdb-acf1419f9c52d06ee70169b85c5f8980c7359f8f.zip gdb-acf1419f9c52d06ee70169b85c5f8980c7359f8f.tar.gz gdb-acf1419f9c52d06ee70169b85c5f8980c7359f8f.tar.bz2 |
objcopy: Add --update-section option.
New option for objcopy --update-section allows the contents of a section
to be updated while maintaining the section flags, and, for ELF files,
the section to segment mapping.
New test uses --dump-section and --update-section to check that a
section can be made larger and smaller with an update.
binutils/ChangeLog:
* objcopy.c (update_sections): New list.
(command_line_switch): Add OPTION_UPDATE_SECTION.
(copy_options): Add update-section.
(copy_usage): Document new option.
(is_update_section): New function.
(is_strip_section_1): Add check for attempt to update and remove
the same section.
(copy_object): Update size and content of requested sections.
(skip_section): Don't copy for updated sections.
(copy_main): Handle --update-section.
* doc/binutils.texi (objcopy): Add description of --update-section
option.
* NEWS: Mention --update-section option.
binutils/testsuite/ChangeLog:
* binutils-all/update-1.s: New file.
* binutils-all/update-2.s: New file.
* binutils-all/update-3.s: New file.
* binutils-all/update-4.s: New file.
* binutils-all/update-section.exp: New file.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 81f19f1..0772916 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,19 @@ +2015-02-28 Andrew Burgess <andrew.burgess@embecosm.com> + + * objcopy.c (update_sections): New list. + (command_line_switch): Add OPTION_UPDATE_SECTION. + (copy_options): Add update-section. + (copy_usage): Document new option. + (is_update_section): New function. + (is_strip_section_1): Add check for attempt to update and remove + the same section. + (copy_object): Update size and content of requested sections. + (skip_section): Don't copy for updated sections. + (copy_main): Handle --update-section. + * doc/binutils.texi (objcopy): Add description of --update-section + option. + * NEWS: Mention --update-section option. + 2015-02-26 Nick Clifton <nickc@redhat.com> PR binutils/17512 |