Skip to content

Ghidra is a software reverse engineering (SRE) framework

Merge remote-tracking branch 'origin/GP-5727_Dan_z3emu--SQUASHED'

ghidra1a483a4e28c49
diff --cc gradle/support/fetchDependencies.gradle
index ba113e759d,5f002907ac..1e805c84ea
--- a/gradle/support/fetchDependencies.gradle
+++ b/gradle/support/fetchDependencies.gradle
@@@ -60,6 -60,14 +60,16 @@@ file("${REPO_DIR}/Ghidra/application.pr
ext.RELEASE_VERSION = ghidraProps.getProperty('application.version')
}
-// you can't just change this to change the Z3 version, because we have specified shas
-// also note that the version appears in build.gradle
++// Z3 download versions (https://github.com/Z3Prover/z3/releases)
++// NOTE: Changing these versions also requires appropriate changes to the sha256 values for each of
++// the Z3 files specified in the dependency list below. These versions may also be specified
++// elsewhere within the Ghidra source/build code.
+ ext.Z3_VER = "4.13.0"
+ ext.Z3_ARM64_OSX_VER = "11.0"
+ ext.Z3_X64_OSX_VER = "11.7.10"
+ ext.Z3_X64_GLIBC_VER = "2.31"
-// NO Z3_WIN_VER
++// No Z3_WIN_VER
+
ext.deps = [
[
name: "java-sarif-2.1-modified.jar",
@@@ -163,10 -171,43 +173,43 @@@
sha256: "98605c6b6b9214a945d844e41c85860d54649a45bca7873ef6991c0e93720787",
destination: FID_DIR
],
+ [
+ name: "z3-${Z3_VER}-x64-glibc-${Z3_X64_GLIBC_VER}.zip", // Use this one for the Java jar
+ url: "https://github.com/Z3Prover/z3/releases/download/z3-${Z3_VER}/z3-${Z3_VER}-x64-glibc-${Z3_X64_GLIBC_VER}.zip",
+ sha256: "93f91f9c6f4a00a041c19fc7a74adc1f441c8244ce70d486e19abcd89c6a014b",
+ destination: {
+ unzip(DOWNLOADS_DIR, DOWNLOADS_DIR, "z3-${Z3_VER}-x64-glibc-${Z3_X64_GLIBC_VER}.zip")
+ copyDirectory(new File(DOWNLOADS_DIR, "z3-${Z3_VER}-x64-glibc-${Z3_X64_GLIBC_VER}/bin/"), FLAT_REPO_DIR, new WildcardFileFilter("*.jar"))
+ }
+ ],
+ [
+ name: "z3-${Z3_VER}-arm64-osx-${Z3_ARM64_OSX_VER}.zip", // macOS on Apple silicon
+ url: "https://github.com/Z3Prover/z3/releases/download/z3-${Z3_VER}/z3-${Z3_VER}-arm64-osx-${Z3_ARM64_OSX_VER}.zip",
+ sha256: "e23d03005558c1b5d3c1b8bd503e65b84edfe3f1ae4298bd8c4710b5b0a645eb",
+ destination: file("${DEPS_DIR}/SymbolicSummaryZ3")
+ ],
+ [
+ name: "z3-${Z3_VER}-x64-glibc-${Z3_X64_GLIBC_VER}.zip", // Linux on 64-bit Intel
+ url: "https://github.com/Z3Prover/z3/releases/download/z3-${Z3_VER}/z3-${Z3_VER}-x64-glibc-${Z3_X64_GLIBC_VER}.zip",
+ sha256: "93f91f9c6f4a00a041c19fc7a74adc1f441c8244ce70d486e19abcd89c6a014b",
+ destination: file("${DEPS_DIR}/SymbolicSummaryZ3")
+ ],
+ [
+ name: "z3-${Z3_VER}-x64-osx-${Z3_X64_OSX_VER}.zip", // macOS on 64-bit Intel
+ url: "https://github.com/Z3Prover/z3/releases/download/z3-${Z3_VER}/z3-${Z3_VER}-x64-osx-${Z3_X64_OSX_VER}.zip",
+ sha256: "7598c2be3129429e83fb5082b92ae973f41a6a289873b4ea33180d9072067e80",
+ destination: file("${DEPS_DIR}/SymbolicSummaryZ3")
+ ],
+ [
+ name: "z3-${Z3_VER}-x64-win.zip", // Windows on 64-bit Intel
+ url: "https://github.com/Z3Prover/z3/releases/download/z3-${Z3_VER}/z3-${Z3_VER}-x64-win.zip",
+ sha256: "0a36dd5654fe423d23a727c4570c9db9a315926a4301189b868b6eb9bfd5979d",
+ destination: file("${DEPS_DIR}/SymbolicSummaryZ3")
+ ],
[
- name: "protobuf-3.20.3-py2.py3-none-any.whl",
- url: "https://files.pythonhosted.org/packages/8d/14/619e24a4c70df2901e1f4dbc50a6291eb63a759172558df326347dce1f0d/protobuf-3.20.3-py2.py3-none-any.whl",
- sha256: "a7ca6d488aa8ff7f329d4c545b2dbad8ac31464f1d8b1c87ad1346717731e4db",
+ name: "protobuf-6.31.0-py3-none-any.whl",
+ url: "https://files.pythonhosted.org/packages/ee/01/1ed1d482960a5718fd99c82f6d79120181947cfd4667ec3944d448ed44a3/protobuf-6.31.0-py3-none-any.whl",
+ sha256: "6ac2e82556e822c17a8d23aa1190bbc1d06efb9c261981da95c71c9da09e9e23",
destination: file("${DEPS_DIR}/Debugger-rmi-trace/")
],
[