Skip to content

Commit

Permalink
add PPC sleigh IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
cseagle committed Jan 3, 2020
1 parent 871e7fa commit 3981c88
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,17 @@ bool get_sleigh_id(string &sleigh) {
case PLFM_PIC:
break;
case PLFM_PPC: {
// ABI name is set to "xbox" for X360 PPC executables
qstring abi;
if (get_abi_name(&abi) > 0 && abi.find("xbox") == 0) {
sleigh += ":64:VLE-32addr";
}
break;
//options include "default" "64-32addr" "4xx" "MPC8270" "QUICC" "A2-32addr"
// "A2ALT-32addr" "A2ALT" "VLE-32addr" "VLEALT-32addr"
qstring abi;
if (get_abi_name(&abi) > 0 && abi.find("xbox") == 0) {
// ABI name is set to "xbox" for X360 PPC executables
sleigh += ":64:VLE-32addr";
}
else {
sleigh += is_64 ? ":64:default" : ":32:default";
}
break;
}
case PLFM_SPARC:
break;
Expand Down

0 comments on commit 3981c88

Please sign in to comment.