]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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>
Fri, 30 Apr 2021 06:34:46 +0000 (08:34 +0200)
(cherry picked from commit 6f3e54d404cfe1ba7d1444e6dfcfd77b102d9287)

nptl/Makefile

index 1ca23385d4de9000e67c44d056e1700d8743559c..a1a8ef254b3c3b17e868bb4460ac9975dd66b769 100644 (file)
@@ -353,6 +353,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)