Unable to Link GDB (Native or Cross) on Cygwin

Joel Sherrill joel@rtems.org
Tue Oct 20 21:12:50 GMT 2020


Hi

The subject is about GDB not linking on Cygwin when built native or cross
but it appears to be a binutils bug. At least that's what Jim Wilson
suggested since it looked like a bug he had fixed in the RISC-V. This has
been present since at least Match.

Ticket: https://sourceware.org/bugzilla/show_bug.cgi?id=26757
Recent Discussion:
https://sourceware.org/pipermail/gdb/2020-October/048975.html

This output is from a native build from the master yesterday:

cp-support.o: in function `gdb_demangle(char const*, int)':
/home/jrs007/test-gcc/b-native/gdb/../../binutils-gdb/gdb/cp-support.c:1619:(.text+0x6472):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS
init function for thread_local_segv_handler'
/home/jrs007/test-gcc/b-native/gdb/../../binutils-gdb/gdb/cp-support.c:1619:(.text+0x648b):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS
init function for thread_local_segv_handler'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1871: gdb.exe] Error 1

Same linker output for arm-eabi and all the *-rtems* I looked at.

Thanks.

--jorl


More information about the Binutils mailing list