Thunk alignment is needed when using pc-rel instructions to avoid crossing the 64 byte boundary.
Patched by @nemanjai
Paths 
  |  Differential  D85973  
[PowerPC] Fix thunk alignment issue when using pc-rel instruction  ClosedPublic Authored by NeHuang on Aug 14 2020, 7:33 AM. 
Details Summary Thunk alignment is needed when using pc-rel instructions to avoid crossing the 64 byte boundary. Patched by @nemanjai 
Diff Detail 
 Event Timeline
 
 NeHuang added inline comments. 
 
 This revision is now accepted and ready to land.Aug 16 2020, 6:01 PM Closed by commit rG7b391245d8ea: [PowerPC] Fix thunk alignment issue when using pc-rel instruction (authored by NeHuang).  ·  Explain WhyAug 17 2020, 7:10 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 286015 lld/ELF/SyntheticSections.cpp
 lld/ELF/Thunks.cpp
 lld/test/ELF/ppc64-bsymbolic-toc-restore.s
 lld/test/ELF/ppc64-call-reach.s
 lld/test/ELF/ppc64-dtprel.s
 lld/test/ELF/ppc64-ifunc.s
 lld/test/ELF/ppc64-local-dynamic.s
 lld/test/ELF/ppc64-long-branch-init.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-plt-stub.s
 lld/test/ELF/ppc64-tls-gd.s
 lld/test/ELF/ppc64-toc-call-to-pcrel.s
 lld/test/ELF/ppc64-toc-restore-recursive-call.s
 lld/test/ELF/ppc64-toc-restore.s
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Doesn't it have <__toc_save_callee>?