nptl: Do not build nptl/tst-pthread-gdb-attach as PIE
authorFlorian Weimer <fweimer@redhat.com>
Thu, 22 Apr 2021 17:53:15 +0000 (19:53 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 22 Apr 2021 17:54:29 +0000 (19:54 +0200)
nptl/Makefile

index a3d1ef8..294bb2f 100644 (file)
@@ -377,6 +377,9 @@ endif
 CFLAGS-tst-pthread-gdb-attach-static.c := $(CFLAGS-printers-tests)
 CPPFLAGS-tst-pthread-gdb-attach-static.c := \
   $(CFLAGS-printers-tests) -DDO_ADD_SYMBOL_FILE=0
+# As of version 9.2, GDB cannot attach properly to PIE programs that
+# were launched with an explicit ld.so invocation.
+tst-pthread-gdb-attach-no-pie = yes
 
 ifeq ($(build-shared),yes)
 tests-printers-libs := $(shared-thread-library)