This is the mail archive of the 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]

Re: [PATCH 2/2] objcopy/strip: Add option --remove-relocations=SECTIONPATTERN

On Thu, Jul 14, 2016 at 09:26:48AM +0100, Andrew Burgess wrote:
> 	* doc/binutils.texi (objcopy): Document 'remove-relocations'.
> 	(strip): Likewise.
> 	* objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
> 	(enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
> 	(struct option strip_options): Add 'remove-relocations'.
> 	(struct option copy_options): Likewise.
> 	(copy_usage): Likewise.
> 	(strip_usage): Likewise.
> 	(handle_remove_relocations_option): New function.
> 	(discard_relocations): New function.
> 	(handle_remove_section_option): New function.
> 	(copy_relocations_in_section): Use discard_relocations.
> 	(strip_main): Use handle_remove_section_option for
> 	'remove-section', and handle 'remove-relocations' option.
> 	(copy_main): Likewise.
> 	* testsuite/binutils-all/objcopy.exp: Run new tests.
> 	* testsuite/binutils-all/remove-relocs-01.d: New file.
> 	* testsuite/binutils-all/remove-relocs-01.s: New file.
> 	* testsuite/binutils-all/remove-relocs-02.d: New file.
> 	* testsuite/binutils-all/remove-relocs-03.d: New file.
> 	* testsuite/binutils-all/remove-relocs-04.d: New file.
> 	* testsuite/binutils-all/remove-relocs-05.d: New file.
> 	* testsuite/binutils-all/remove-relocs-06.d: New file.

OK, with NEWS entry moved to the correct place, and binutils.texi
typos similar to the previous patch, fixed.

Alan Modra
Australia Development Lab, IBM

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