[llvm-bugs] [Bug 36928] New: [PPC64] V2 ABI: implement toc restore after calls.
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 27 20:25:27 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=36928
Bug ID: 36928
Summary: [PPC64] V2 ABI: implement toc restore after calls.
Product: lld
Version: unspecified
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: sfertile at ca.ibm.com
CC: llvm-bugs at lists.llvm.org
rewriting nops to toc restores works for big-endian, but not little-endian
ppc64.
Calls that cross dso-boundaries will set r2 to the toc pointer for the dso the
callee resides in. The plt stub will save the local toc pointer into the toc
save slot (sp + 24) and the compiler will have inserted a nop after any call
that may not be local. LLD needs to recognize when a call is not local, and
rewrite the nop to a load of the saved toc pointer into r2.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180328/29f8574b/attachment.html>
More information about the llvm-bugs
mailing list