REhints / HexRaysCodeXplorer

Hex-Rays Decompiler plugin for better code navigation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ARM/ARM64 support?

huntergregal opened this issue · comments

as title suggests

In the meantime -assuming you are using idasdk >=7.6:

diff --git a/src/HexRaysCodeXplorer/makefile.mac b/src/HexRaysCodeXplorer/makefile.mac
index 3d3a1de..356616e 100644
--- a/src/HexRaysCodeXplorer/makefile.mac
+++ b/src/HexRaysCodeXplorer/makefile.mac
@@ -59,7 +59,7 @@ all: check-env HexRaysCodeXplorer.$(EXT)

 HexRaysCodeXplorer.$(EXT): $(OBJS)
        #ln -f -s $(IDA_SDK)/lib/x64_linux_gcc_64/pro.a libpro.a
-       ln -f -s $(IDA_SDK)/lib/x86_mac_gcc_32/pro.a libpro.a
+       ln -f -s $(IDA_SDK)/lib/arm_mac_clang_32/pro.a libpro.a
        $(CC) $(LDFLAGS) $(LIBDIR) -o HexRaysCodeXplorer.$(EXT) $(OBJS) $(LIBS)

 %.o: %.cpp

I built from source (from fe52e16) via the CMake build method on an M1 Mac against idasdk 7.7, and it seems to have built the plugin as a universal binary. I'm using the plugin currently on the Apple Silicon build of IDA 7.7 sp1 with no issues so far.

$ file HexRaysCodeXplorer*.dylib
HexRaysCodeXplorer.dylib:   Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit bundle x86_64] [arm64]
HexRaysCodeXplorer.dylib (for architecture x86_64):	Mach-O 64-bit bundle x86_64
HexRaysCodeXplorer.dylib (for architecture arm64):	Mach-O 64-bit bundle arm64
HexRaysCodeXplorer64.dylib: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit bundle x86_64] [arm64]
HexRaysCodeXplorer64.dylib (for architecture x86_64):	Mach-O 64-bit bundle x86_64
HexRaysCodeXplorer64.dylib (for architecture arm64):	Mach-O 64-bit bundle arm64
commented

Any chance of sharing more recent Mac builds so we can avoid the headache of recompiling? <.<

commented

Nvm, got it compiled. Happy to share files for releases if @matrosov et al approve.