about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2023-03-23 16:46:20 +0100
committerAndreas Schwab <schwab@suse.de>2023-05-09 14:36:34 +0200
commitab5aa2ee3d3f978e474803cbbc5fe805ad30e293 (patch)
treefe778d97394e5ab8c89904492d2e34e167177bec /elf/Makefile
parentd1417176a35d27ffb8da0ffb1e33154163b6eeb2 (diff)
downloadglibc-ab5aa2ee3d3f978e474803cbbc5fe805ad30e293.tar.gz
glibc-ab5aa2ee3d3f978e474803cbbc5fe805ad30e293.tar.xz
glibc-ab5aa2ee3d3f978e474803cbbc5fe805ad30e293.zip
dlopen: skip debugger notification for DSO loaded from sprof (bug 30258)
Avoid inconsistent state in the debugger interface.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 396ec51424..b9056264d8 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -510,6 +510,7 @@ tests-container += \
 
 test-srcs = \
   tst-pathopt \
+  tst-sprof-basic \
   # tests-srcs
 
 ifeq (yes,$(have-fpie))
@@ -861,6 +862,7 @@ modules-names += \
   tst-sonamemove-linkmod1 \
   tst-sonamemove-runmod1 \
   tst-sonamemove-runmod2 \
+  tst-sprof-mod \
   tst-tls19mod1 \
   tst-tls19mod2 \
   tst-tls19mod3 \
@@ -1116,6 +1118,7 @@ tests-special += \
   $(objpfx)tst-rtld-help.out \
   $(objpfx)tst-rtld-load-self.out \
   $(objpfx)tst-rtld-preload.out \
+  $(objpfx)tst-sprof-basic.out \
   # tests-special
 endif
 tests-special += \
@@ -2986,3 +2989,11 @@ tst-audit-tlsdesc-dlopen-ENV = LD_AUDIT=$(objpfx)tst-auditmod-tlsdesc.so
 $(objpfx)tst-dlmopen-twice.out: \
   $(objpfx)tst-dlmopen-twice-mod1.so \
   $(objpfx)tst-dlmopen-twice-mod2.so
+
+LDFLAGS-tst-sprof-mod.so = -Wl,-soname,tst-sprof-mod.so
+$(objpfx)tst-sprof-basic: $(objpfx)tst-sprof-mod.so
+$(objpfx)tst-sprof-basic.out: tst-sprof-basic.sh $(objpfx)tst-sprof-basic
+	$(SHELL) $< $(common-objpfx) '$(test-wrapper-env)' \
+		 '$(run-program-env)' > $@; \
+	$(evaluate-test)
+generated += tst-sprof-mod.so.profile