Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728100 - estrip: Use -R with eu-strip
Summary: estrip: Use -R with eu-strip
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: Normal minor
Assignee: Portage team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 933986
  Show dependency tree
 
Reported: 2020-06-12 22:04 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2024-07-20 19:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2020-06-12 22:04:41 UTC
Since elfutils 0.170, eu-strip supports -R / --remove-section option:

https://sourceware.org/git/?p=elfutils.git;a=blob;f=NEWS;h=3d097c68438489b028e2eb6931f8287fd9a46652;hb=HEAD#l197
"""
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


I suggest to 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