https://sourceware.org/bugzilla/show_bug.cgi?id=26757
Hannes Domani <ssbssa at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot org --- Comment #4 from Hannes Domani <ssbssa at sourceware dot org> --- This problem can also be reproduced with 64bit mingw-w64 builds when linking with an image-base over 4GB, which is now also the default since this commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=514b4e191d5f46de8e142fe216e677a35fa9c4bb Small example, thread-local.cpp: extern thread_local int tlint; int main() { return tlint; } thread-local-2.cpp: thread_local int tlint = 5; $ g++ -othread-local.exe thread-local.cpp thread-local-2.cpp -Wl,--image-base,0x140000000 C:\msys64\tmp\ccIyxkut.o:thread-local.cpp:(.text$_ZTW5tlint[_ZTW5tlint]+0x15): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS init function for tlint' collect2.exe: error: ld returned 1 exit status -- You are receiving this mail because: You are on the CC list for the bug.