estrip: update for modern elfutils by passing -R #1096
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since elfutils 0.170, eu-strip supports -R / --remove-section option [0] """
strip: Add -R, --remove-section=SECTION and --keep-section=SECTION. """
"--remove-comment" is the same as "-R .comment". (eu-strip still does not support -N / --strip-symbol option, which would be good to use when it is implemented (Bug #686282).)
<elfutils-0.170 was deleted almost 2 years ago:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a0474559d4361a75a90aadc2b0f5ec46d85f359
Call eu-strip with the same -R options as for GNU strip / llvm-strip:
-R .comment -R .GCC.command.line -R .note.gnu.gold-version
[0] https://sourceware.org/git/?p=elfutils.git;a=blob;f=NEWS;h=3d097c68438489b028e2eb6931f8287fd9a46652;hb=HEAD#l197
Bug: https://bugs.gentoo.org/728100