This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Rename --keep to --keep-section.
ClosedPublic

Authored by rupprecht on Nov 13 2018, 8:22 AM.

Details

Summary

llvm-objcopy/strip support --keep (for sections) and --keep-symbols (for symbols). For consistency and clarity, rename --keep to --keep-section.
In fact, for GNU compatability, -K is --keep-symbol, so it's weird that the alias -K is not the same as the short-ish --keep.

Diff Detail

Event Timeline

rupprecht created this revision.Nov 13 2018, 8:22 AM
This revision is now accepted and ready to land.Nov 13 2018, 9:30 AM

If we wanted we could also add an alias for -k but I don't really think that matters too much.

MaskRay accepted this revision.Nov 13 2018, 9:40 AM
This revision was automatically updated to reflect the committed changes.