Skip to content

Commit

Permalink
Merge pull request #4 from nekohaku/master
Browse files Browse the repository at this point in the history
Make a CI workflow file and fix an exception in modern Ghidra versions.
  • Loading branch information
Andrew Strelsky authored Dec 1, 2021
2 parents 1c39895 + 30c1e8b commit 34f7f01
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 4 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build and publish

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ghidra: ["10.0.4"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@main
with:
java-version: '11'
java-package: jdk
architecture: x64
distribution: 'temurin'
- uses: er28-0652/setup-ghidra@master
with:
version: ${{ matrix.ghidra }}
- uses: actions/checkout@v2
with:
repository: astrelsky/Ghidra-Cpp-Class-Analyzer
path: Ghidra-Cpp-Class-Analyzer
- uses: eskatos/gradle-command-action@v2
with:
gradle-version: 6.9
build-root-directory: Ghidra-Cpp-Class-Analyzer
arguments: buildExtension -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}
- name: Install the class analyzer as an extension forcefully
run: |
mkdir -p ~/.ghidra/.ghidra_${{ matrix.ghidra }}_PUBLIC/Extensions/
unzip Ghidra-Cpp-Class-Analyzer/dist/*.zip -d ~/.ghidra/.ghidra_${{ matrix.ghidra }}_PUBLIC/Extensions/
- uses: actions/upload-artifact@v2
with:
name: Ghidra-Cpp-Class-Analyzer
path: Ghidra-Cpp-Class-Analyzer/dist/*.zip
if-no-files-found: warn
- name: Cleanup
run: rm -rf Ghidra-Cpp-Class-Analyzer
- uses: eskatos/gradle-command-action@v2
with:
gradle-version: 6.9
arguments: buildExtension -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}
- uses: actions/upload-artifact@v2
with:
name: GhidraOrbis
path: dist/*.zip
if-no-files-found: warn


Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

public class DefaultElfHeader extends ElfHeader {

protected DefaultElfHeader() {
public DefaultElfHeader() {
super();
}

//////////////////////////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

public class DefaultElfProgramHeader extends ElfProgramHeader {

protected DefaultElfProgramHeader() {
public DefaultElfProgramHeader() {
super();
}

public static ElfProgramHeader createElfProgramHeader(FactoryBundledWithBinaryReader reader,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

public class DefaultElfSymbolTable extends ElfSymbolTable {

protected DefaultElfSymbolTable() {
public DefaultElfSymbolTable() {
super();
}

public static ElfSymbolTable createElfSymbolTable(FactoryBundledWithBinaryReader reader,
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/orbis/elf/OrbisElfHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public class OrbisElfHeader extends ElfHeader {
public static final short ET_SCE_DYNAMIC = (short) 0xFE18;
public static final short ET_SCE_KERNEL = 2;

protected OrbisElfHeader() {
public OrbisElfHeader() {
super();
}

public static OrbisElfHeader createElfHeader(GenericFactory factory, ByteProvider provider)
Expand Down

0 comments on commit 34f7f01

Please sign in to comment.