Skip to content

Commit 0363685

Browse files
committed
Update json schema to fit the update to vmlinux script
1 parent 5d2a673 commit 0363685

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

GhidraVmlinuxLoader/src/main/java/ghidravmlinuxloader/GhidraVmlinuxLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ public Collection<LoadSpec> findSupportedLoadSpecs(ByteProvider provider) throws
8282
}
8383

8484
LanguageCompilerSpecPair langSpecPair;
85-
if (symJson.arch == 32) {
85+
if (symJson.arch.equals("arm")) {
8686
langSpecPair = new LanguageCompilerSpecPair("ARM:LE:32:v7", compiler);
87-
} else if (symJson.arch == 64) {
87+
} else if (symJson.arch.equals("arm64")) {
8888
langSpecPair = new LanguageCompilerSpecPair("AARCH64:LE:64:v8A", compiler);
8989
} else {
9090
return loadSpecs;

GhidraVmlinuxLoader/src/main/java/ghidravmlinuxloader/VmlinuxSymJson.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import com.google.gson.Gson;
1010

1111
public class VmlinuxSymJson {
12-
public int arch;
12+
public String arch;
13+
public int ptr_size;
1314
public BigInteger _start;
1415
public int numsyms;
1516
public BigInteger[] address;

0 commit comments

Comments
 (0)