[PowerPC][PC Rel] Implement option to omit Power10 instructions from stubs
authorAlbion Fung <albion.fung@ibm.com>
Thu, 4 Mar 2021 18:17:40 +0000 (13:17 -0500)
committerAlbion Fung <conanap@lep82435v.canlab.ibm.com>
Thu, 4 Mar 2021 18:27:46 +0000 (13:27 -0500)
commit36192790d84ba1c9a814df4024967685b0dc27c5
tree1ed7015bc443279f20a932cf3b5aae456a9a6602
parent6af94d22f7b0f7f5edd84ad9ae96fd801dbf017d
[PowerPC][PC Rel] Implement option to omit Power10 instructions from stubs

Implemented the option to omit Power10 instructions from save stubs via the
option --no-power10-stubs or --power10-stubs=no on lld. --power10-stubs= will
override the other option. --power10-stubs=auto also exists to use the default
behaviour (ie allow Power10 instructions in stubs).

Differential Revision: https://reviews.llvm.org/D94627
17 files changed:
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/ELF/Thunks.cpp
lld/ELF/Thunks.h
lld/test/ELF/ppc64-call-reach.s
lld/test/ELF/ppc64-long-branch-localentry-offset.s
lld/test/ELF/ppc64-long-branch-pi.s
lld/test/ELF/ppc64-long-branch-rel14.s
lld/test/ELF/ppc64-long-branch.s
lld/test/ELF/ppc64-pcrel-call-to-extern.s
lld/test/ELF/ppc64-pcrel-call-to-toc.s
lld/test/ELF/ppc64-plt-stub-compatible.s
lld/test/ELF/ppc64-tls-pcrel-gd.s
lld/test/ELF/ppc64-toc-call-to-pcrel-long-jump.s
lld/test/ELF/ppc64-toc-call-to-pcrel.s
llvm/include/llvm/Object/ELF.h