1 From 6f3e54d404cfe1ba7d1444e6dfcfd77b102d9287 Mon Sep 17 00:00:00 2001
2 From: Florian Weimer <fweimer@redhat.com>
3 Date: Thu, 22 Apr 2021 19:53:15 +0200
4 Subject: [PATCH 409/576] nptl: Do not build nptl/tst-pthread-gdb-attach as PIE
8 1 file changed, 3 insertions(+)
10 diff --git a/nptl/Makefile b/nptl/Makefile
11 index a3d1ef8d66..294bb2faa4 100644
14 @@ -377,6 +377,9 @@ endif
15 CFLAGS-tst-pthread-gdb-attach-static.c := $(CFLAGS-printers-tests)
16 CPPFLAGS-tst-pthread-gdb-attach-static.c := \
17 $(CFLAGS-printers-tests) -DDO_ADD_SYMBOL_FILE=0
18 +# As of version 9.2, GDB cannot attach properly to PIE programs that
19 +# were launched with an explicit ld.so invocation.
20 +tst-pthread-gdb-attach-no-pie = yes
22 ifeq ($(build-shared),yes)
23 tests-printers-libs := $(shared-thread-library)