Re: [PATCH][gdb/build] Fix gdbserver build with -fsanitize=thread

2022-06-26 Thread Richard Biener via Gcc-patches
On Sat, Jun 25, 2022 at 11:09 AM Tom de Vries via Gcc-patches wrote: > > Hi, > > When building gdbserver with -fsanitize=thread (added to CFLAGS/CXXFLAGS) we > run into: > ... > ld: ../libiberty/libiberty.a(safe-ctype.o): warning: relocation against \ > `__tsan_init' in read-only section `.text'

[PATCH][gdb/build] Fix gdbserver build with -fsanitize=thread

2022-06-25 Thread Tom de Vries via Gcc-patches
Hi, When building gdbserver with -fsanitize=thread (added to CFLAGS/CXXFLAGS) we run into: ... ld: ../libiberty/libiberty.a(safe-ctype.o): warning: relocation against \ `__tsan_init' in read-only section `.text' ld: ../libiberty/libiberty.a(safe-ctype.o): relocation R_X86_64_PC32 \ against sym