You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DLL produced by link.exe from Visual Studio Build Tools is linked with GCC produced application using ld linker from `binutils. The following error occurs:
aarch64-w64-mingw32-gcc reloc-use-dll-gcc.o -lreloc-dll-msvc -L. -o reloc-gcc-msvc.exe
./reloc-dll-msvc.lib(reloc-dll-msvc.dll):(.text+0x0): relocation truncated to fit: IMAGE_REL_ARM64_ADDR32 against symbol `__imp_test_reloc' defined in .idata$5 section in ./reloc-dll-msvc.lib(reloc-dll-msvc.dll)
collect2: error: ld returned 1 exit status
When the DLL is created using GCC (calling ld as a linker) from objects created by MSVC cl.exe this issue does not occur.
The text was updated successfully, but these errors were encountered:
Blackhex
changed the title
relocation truncated to fit: IMAGE_REL_ARM64_ADDR32 against symbol when linking against DLL creted by link.exe
Binutils: relocation truncated to fit: IMAGE_REL_ARM64_ADDR32 against symbol when linking against DLL creted by link.exeJan 5, 2025
DLL produced by
link.exe
from Visual Studio Build Tools is linked with GCC produced application usingld
linker from `binutils. The following error occurs:When the DLL is created using GCC (calling
ld
as a linker) from objects created by MSVCcl.exe
this issue does not occur.See the reloc.zip for the detailed repro-case.
The text was updated successfully, but these errors were encountered: