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

relocation truncated to fit: R_X86_64_32S against `.bss' #1

Open
yzp3646 opened this issue Sep 29, 2020 · 2 comments
Open

relocation truncated to fit: R_X86_64_32S against `.bss' #1

yzp3646 opened this issue Sep 29, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@yzp3646
Copy link

yzp3646 commented Sep 29, 2020

I get some problems when I try to compile vm-dump-proxy: CMakeFiles\version.dir/objects.a(hook.cpp.obj):D:/xxxx/jvm-dump-proxy-master/proxy.h:13:(.text+0x3f): relocation truncated to fit: R_X86_64_32S against .bss' ;CMakeFiles\version.dir/objects.a(hook.cpp.obj):D:/teng/jvm-dump-proxy-master/proxy.h:14:(.text+0x49): relocation truncated to fit: R_X86_64_32S against .bss'
all these problems aims to:

#define WRAPPER_GENFUNC(name)
FARPROC orig_##name;
extern "C" __declspec(naked) void ##name()
{
asm("jmp *orig
"#name);
}
Look forward to receiving your immediate reply,thank you!

@ViRb3
Copy link
Owner

ViRb3 commented Sep 29, 2020

Hey, I'm not sure why you're getting this error. Are you compiling using mingw-w64 7.0.0+, as stated in the README? Could you give some details on how to reproduce this error?

@ViRb3
Copy link
Owner

ViRb3 commented Mar 2, 2022

This is an issue with using more recent versions of mingw, I can confirm it happens with 9+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants