[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

Hal Finkel via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Jan 6 13:40:00 PST 2018


hfinkel added a comment.

In https://reviews.llvm.org/D41702#969179, @labath wrote:

> Is the only difference between ppc64 and ppc64le ABIs in the endianness of the values?
>  If so, could we make one unified ABI which takes the endianness as an argument (in the constructor, or as a template argument, or deduces it from target endiannes, ...) ?


The ABIs have some other differences. The largest difference between the ABIs is how indirect-calls (and, thus, function pointers) work. There are some other more-minor differences, for example, some of the call-frame offsets are different.  It still might be possible to unify the support (we certainly have one backend in LLVM for both), but it's a bit more involved than just switching the endianness.


https://reviews.llvm.org/D41702





More information about the lldb-commits mailing list