[LLD] Improve --strip-all help text
authorBen Dunbobbin <Ben.Dunbobbin@sony.com>
Thu, 6 May 2021 11:05:27 +0000 (12:05 +0100)
committerBen Dunbobbin <Ben.Dunbobbin@sony.com>
Thu, 6 May 2021 11:34:06 +0000 (12:34 +0100)
commit5dd9f44c17ec0d8b6b88bb015560b3c566622fdc
tree1ce22fe32bd459687c6f2e7f85d5ccc4bc03645e
parenta0d019fc89c57736e54a476aa4db63027a2dace2
[LLD] Improve --strip-all help text

This is a slight improvement to the help text, as I was slightly
surprised when strip-all did more than remove the symbol table.

Currently, we match gold's help text for strip-all and strip-debug.
I think that the GNU documentation for these options is not particularly
clear. However, I have opted to make only a minor change here and keep
the help text similar to gold's as these are mature options that are
well understood.

ld.bfd (https://sourceware.org/binutils/docs/ld/Options.html) has a
similar implication although it defines strip-debug as a subset of
strip-all. However, felt that noting that strip-all implies strip-debug
is better; because, with the ld.bfd approach you have to read both the
--strip-debug and the --strip-all help text to understand the behaviour
of --strip-all (and the --strip-all help text doesn't indicate that he
--strip-debug help text is related).

Differential Revision: https://reviews.llvm.org/D101890
lld/ELF/Options.td
lld/docs/ld.lld.1