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

someone can compile in mac-intel with mingw? #22

Open
b1gcat opened this issue Aug 14, 2022 · 3 comments
Open

someone can compile in mac-intel with mingw? #22

b1gcat opened this issue Aug 14, 2022 · 3 comments

Comments

@b1gcat
Copy link

b1gcat commented Aug 14, 2022

while linking, i got error:
syscallsstubs.x64.s:18:(.text+0x1c): relocation truncated to fit: R_X86_64_32S against .data'.`

@b1gcat
Copy link
Author

b1gcat commented Aug 14, 2022

ah it seems the following code cause the error :

mov dword ptr [currentHash], 0x0xxxxxxxx # Load function hash into global variable.

@odzhan
Copy link
Collaborator

odzhan commented Aug 23, 2022

sorry, have no Mac here to test out.

@xenoscr
Copy link
Contributor

xenoscr commented Sep 3, 2022

@b1gcat this should be fixed in the newer versions of the code. The solution was to introduce RIP relative addressing. I have also found that in some cases, it's necessary to manually set a lower base address.

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

No branches or pull requests

3 participants