From f659760716b0447a2c13e100e6d197d6592f00af Mon Sep 17 00:00:00 2001 From: chaoticgd <43898262+chaoticgd@users.noreply.github.com> Date: Sat, 28 Sep 2024 08:15:30 +0100 Subject: [PATCH] Add support for Ghidra 11.2 --- .github/workflows/publish.yml | 25 +++++++++++-------------- .github/workflows/test.yml | 18 +++++++++--------- .github/workflows/unstable.yml | 23 +++++++++-------------- CHANGELOG.md | 4 ++++ README.md | 2 +- 5 files changed, 34 insertions(+), 38 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8f445de..471d022 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,16 +10,19 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ghidra: ["11.1.2"] + ghidra: ["11.2", "11.1.2"] steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Setup Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: "17" - java-package: jdk - architecture: x64 + distribution: 'temurin' + java-version: '21' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + with: + gradle-version: "8.10" - name: Setup Ghidra uses: er28-0652/setup-ghidra@b53614dada0a16e3c342277caae905b96d803109 with: @@ -27,15 +30,9 @@ jobs: - name: Download stdump run: bash ./os/download.sh - name: Test - uses: gradle/gradle-build-action@v2 - with: - gradle-version: 7.6 - arguments: test -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} + run: gradle -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} test - name: Build Extension - uses: gradle/gradle-build-action@v2 - with: - gradle-version: 7.6 - arguments: buildExtension -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} + run: gradle -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} buildExtension - name: Release uses: svenstaro/upload-release-action@2.9.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4396ee4..6c28d24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,22 +7,22 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ghidra: ["11.1.2"] + ghidra: ["11.2", "11.1.2"] steps: - name: Checkout uses: actions/checkout@v1 - name: Setup Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: "17" - java-package: jdk - architecture: x64 + distribution: 'temurin' + java-version: '21' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + with: + gradle-version: "8.10" - name: Setup Ghidra uses: er28-0652/setup-ghidra@b53614dada0a16e3c342277caae905b96d803109 with: version: ${{ matrix.ghidra }} - name: Test - uses: gradle/gradle-build-action@v2 - with: - gradle-version: 7.6 - arguments: test -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} + run: gradle -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} test diff --git a/.github/workflows/unstable.yml b/.github/workflows/unstable.yml index ad97f59..94aa361 100644 --- a/.github/workflows/unstable.yml +++ b/.github/workflows/unstable.yml @@ -10,32 +10,27 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ghidra: ["11.1.2"] + ghidra: ["11.2", "11.1.2"] steps: - name: Checkout uses: actions/checkout@v1 - name: Setup Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: "17" - java-package: jdk - architecture: x64 + distribution: 'temurin' + java-version: '21' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + with: + gradle-version: "8.10" - name: Setup Ghidra uses: er28-0652/setup-ghidra@b53614dada0a16e3c342277caae905b96d803109 with: version: ${{ matrix.ghidra }} - name: Download stdump run: bash ./os/download.sh - - name: Test - uses: gradle/gradle-build-action@v2 - with: - gradle-version: 7.6 - arguments: test -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} - name: Build Extension - uses: gradle/gradle-build-action@v2 - with: - gradle-version: 7.6 - arguments: buildExtension -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} + run: gradle -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} buildExtension - name: Release uses: svenstaro/upload-release-action@2.9.0 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index de2a805..a7b511d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v2.1.20 + +- Added support for Ghidra 11.2. + ## v2.1.19 - Fixed a relocation regression introduced in v2.1.17 where Ghidra's built-in MIPS relocation handler would take priority over the one included with the extension. diff --git a/README.md b/README.md index 5692f1e..9b6699f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This extension is based on the original [ghidra-emotionengine](https://github.co - Recover data types, functions and global variables from ELF files with `.mdebug` sections with the included STABS Analyzer. - Import PCSX2 save states. - Fix references to global variables with the MIPS-R5900 Constant Reference Analyzer. -- Support for Ghidra 11.1.2. +- Support for Ghidra 11.2. ## Installation