Unverified Commit f82ebc5d by Enkelmann Committed by GitHub

parse correct ldef file for Apple Silicon binaries (#427)

parent 08b72f67
......@@ -162,6 +162,11 @@ public class ParseCspecContent {
*/
public static ResourceFile getLdefFile() {
String processorDef = String.format("%s.ldefs", program.getLanguage().getLanguageDescription().getProcessor().toString());
String languageId = program.getLanguageID().toString();
if (processorDef.startsWith("AARCH64") && languageId.endsWith("AppleSilicon")) {
processorDef = "AppleSilicon.ldef";
}
if(processorDef.startsWith("MIPS") || processorDef.startsWith("AVR")) {
processorDef = processorDef.toLowerCase();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment