[ELF][PPC64] Make --power10-stubs/--no-power10-stubs proper aliases for --power10...
authorFangrui Song <i@maskray.me>
Fri, 26 Nov 2021 19:51:45 +0000 (11:51 -0800)
committerFangrui Song <i@maskray.me>
Fri, 26 Nov 2021 19:51:45 +0000 (11:51 -0800)
commit3b4dd68de5b4aa5876366a3cab5ebf4f2ca047a2
treedf2394044e5ec43a69197e25a02012b9647d9dc5
parentc2280b55173ca42f32e0bf22b10e73ba5b7fbda0
[ELF][PPC64] Make --power10-stubs/--no-power10-stubs proper aliases for --power10-stubs={auto,no}

This allows --power10-stubs= and --[no-]power10-stubs to override each other
(they are position dependent in GNU ld).

Also improve --help messages and the manpage.

Note: GNU ld's default "auto" mode uses heuristics to decide whether Power10
instructions are used. Arguably it is a design mistake of R_PPC64_REL24_NOTOC
(acked by the relevant folks on a libc-alpha discussion). We don't implement
"auto", so the default --power10-stubs is the same as "yes".
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/ELF/Thunks.cpp
lld/docs/ld.lld.1
lld/test/ELF/ppc64-pcrel-call-to-toc.s