ViRb3 / jvm-dump-proxy

A proxy DLL for Windows to dump JVM classes at JNI level
79 stars 11 forks source link

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

Open yzp3646 opened 4 years ago

yzp3646 commented 4 years ago

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 commented 4 years ago

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 commented 2 years ago

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