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]

Re: [PATCH] Implement objcopy/strip --keep-section=<sectionpattern>


On Fri, Nov 01, 2019 at 02:47:55PM -0700, Fāng-ruì Sòng wrote:
> Added some more items, but not clear whether they are complete now.

Thanks for persevering, that will do nicely.

> When can we stop writing ChangeLogs (looking at glibc)?

Good question.  :-)

> +	* objcopy.c (enum option_values): Add OPTION_KEEP_SECTION.
> +	(SECTION_CONTEXT_KEEP): Define.  Adjust other SECTION_CONTEXT macros.
> +	(copy_usage): Describe --keep-section.
> +	(strip_usage): Likewise.
> +	(copy_main): Handle SECTION_CONTEXT_KEEP.
> +	(strip_main): Likewise.
> +	(is_strip_section_1): Likewise.
> +	* testsuite/binutils-all/objcopy.exp: Add tests.
> +	* testsuite/binutils-all/keep-section-1.d: New test driver file.
> +	* testsuite/binutils-all/keep-section-2.d: Likewise.
> +	* doc/binutils.texi: Document the new feature.
> +	* NEWS: Mention the new feature.

Committed.  I did notice a new failure

ia64-vms  +FAIL: ar extracting an element

but that is no doubt due to your and Nick's other patch to ar rather
than this patch.

-- 
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]