Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM/ARM64 support? #97

Open
huntergregal opened this issue Sep 1, 2021 · 6 comments
Open

ARM/ARM64 support? #97

huntergregal opened this issue Sep 1, 2021 · 6 comments
Labels

Comments

@huntergregal
Copy link

as title suggests

@Lichtlos
Copy link

Lichtlos commented Sep 3, 2021

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

@cxiao
Copy link

cxiao commented Jan 28, 2022

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

@juanandresgs
Copy link

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

@juanandresgs
Copy link

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

@rrbranco
Copy link
Contributor

rrbranco commented May 10, 2023 via email

@juanandresgs
Copy link

Already shared w @matrosov but here's a link to the 7z–
https://drive.google.com/file/d/177EhfAAMEYNddazjNw9He0cofvkquMpR/view?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants