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: unassignedb...@nondot.org
Reporter: sfert...@ca.ibm.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs