From: Florian Weimer Date: Thu, 22 Apr 2021 17:53:15 +0000 (+0200) Subject: nptl: Do not build nptl/tst-pthread-gdb-attach as PIE X-Git-Tag: glibc-2.34~593 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f3e54d404cfe1ba7d1444e6dfcfd77b102d9287;p=thirdparty%2Fglibc.git nptl: Do not build nptl/tst-pthread-gdb-attach as PIE --- diff --git a/nptl/Makefile b/nptl/Makefile index a3d1ef8d668..294bb2faa49 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -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)