sualk / ghidra-blackfin

Blackfin CPU support for ghidra
23 stars 2 forks source link

failing to build for Ghidra 11.0.3 #4

Closed westhom closed 2 months ago

westhom commented 5 months ago

Gradle is unable to build for Ghidra 11.0.3, because the relocate() override in Blackfin_ElfRelocationHandler.java now must have return type RelocationResult instead of void.

Error log:

> Task :compileJava FAILED
/Users/wes/Code/opz-tools/ghidra-blackfin/src/main/java/ghidra/app/util/bin/format/elf/relocation/Blackfin_ElfRelocationHandler.java:13: error: Blackfin_ElfRelocationHandler is not abstract and does not override abstract method relocate(ElfRelocationContext,ElfRelocation,Address) in ElfRelocationHandler
public class Blackfin_ElfRelocationHandler extends ElfRelocationHandler {
       ^
/Users/wes/Code/opz-tools/ghidra-blackfin/src/main/java/ghidra/app/util/bin/format/elf/relocation/Blackfin_ElfRelocationHandler.java:21: error: relocate(ElfRelocationContext,ElfRelocation,Address) in Blackfin_ElfRelocationHandler cannot override relocate(ElfRelocationContext,ElfRelocation,Address) in ElfRelocationHandler
        public void relocate(ElfRelocationContext elfRelocationContext, ElfRelocation relocation, Address relocationAddress)
                    ^
  return type void is not compatible with RelocationResult
/Users/wes/Code/opz-tools/ghidra-blackfin/src/main/java/ghidra/app/util/bin/format/elf/relocation/Blackfin_ElfRelocationHandler.java:20: error: method does not override or implement a method from a supertype
        @Override
        ^
jmpolom commented 2 months ago

What ghidra versions is this known to actually work with?? Looks like I succeeded with 10.1.1 but not 10.3.3 or any 11.x versions.