binutils/
authorCary Coutant <ccoutant@google.com>
Tue, 8 May 2012 17:49:36 +0000 (17:49 +0000)
committerCary Coutant <ccoutant@google.com>
Tue, 8 May 2012 17:49:36 +0000 (17:49 +0000)
commit96109726a4d048e59ef11a27264fbe0f47c34690
tree345711a83ae87c34950add36cbeaa08ac9df93c9
parent2d16d28e5c20aacc9637f589558c118d6fe1a17c
binutils/

* doc/binutils.texi (objcopy): Add --strip-dwo, --extract-dwo options.
(strip): Add --strip-dwo option.
* objcopy.c (enum strip_action): Add STRIP_DWO, STRIP_NONDWO.
(enum command_line_switch): Add OPTION_EXTRACT_DWO, OPTION_STRIP_DWO.
(strip_options): Add --strip-dwo option.
(copy_options): Add --extract-dwo, --strip-dwo options.
(copy_usage): Likewise.
(strip_usage): Add --strip-dwo option.
(is_dwo_section): New function.
(is_strip_section_1): Check for DWO sections.
(copy_object): Check for --strip-dwo, --extract-dwo options.
(copy_relocations_in_section): Discard relocations for DWO sections.
Discard entire relocation section when no relocations.
(strip_main): Add --strip-dwo option.
(copy_main): Add --strip-dwo, --extract-dwo options.
binutils/ChangeLog
binutils/doc/binutils.texi
binutils/objcopy.c