|
|
3c8a07 |
From 373f9cff2872cf76b9aee6b4fe7719e04dda122f Mon Sep 17 00:00:00 2001
|
|
|
3c8a07 |
From: "H.J. Lu" <hjl.tools@gmail.com>
|
|
|
3c8a07 |
Date: Fri, 18 Jan 2019 08:56:51 -0800
|
|
|
3c8a07 |
Subject: [PATCH 4/5] Disable lazy binding on tests for minimal signal handler
|
|
|
3c8a07 |
|
|
|
3c8a07 |
Since MINSIGSTKSZ may not have sufficent stack space to allow lazy
|
|
|
3c8a07 |
binding, build tests for minimal signal handler with -Wl,-z,now to
|
|
|
3c8a07 |
disable lazy binding.
|
|
|
3c8a07 |
|
|
|
3c8a07 |
* signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
|
|
|
3c8a07 |
-Wl,-z,now.
|
|
|
3c8a07 |
(LDFLAGS-tst-minsigstksz-2): Likewise.
|
|
|
3c8a07 |
(LDFLAGS-tst-minsigstksz-3): Likewise.
|
|
|
3c8a07 |
(LDFLAGS-tst-minsigstksz-3a): Likewise.
|
|
|
3c8a07 |
(LDFLAGS-tst-minsigstksz-4): Likewise.
|
|
|
3c8a07 |
|
|
|
3c8a07 |
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
|
|
|
3c8a07 |
|
|
|
3c8a07 |
UPDATE:
|
|
|
3c8a07 |
|
|
|
3c8a07 |
Backported to glibc 2.28
|
|
|
3c8a07 |
|
|
|
3c8a07 |
Signed-off-by: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia@intel.com>
|
|
|
3c8a07 |
---
|
|
|
3c8a07 |
ChangeLog | 9 +++++++++
|
|
|
3c8a07 |
signal/Makefile | 8 ++++++++
|
|
|
3c8a07 |
2 files changed, 17 insertions(+)
|
|
|
3c8a07 |
|
|
|
3c8a07 |
diff --git a/ChangeLog b/ChangeLog
|
|
|
3c8a07 |
index 9e33b6cb..ccd5ff21 100644
|
|
|
3c8a07 |
--- a/ChangeLog
|
|
|
3c8a07 |
+++ b/ChangeLog
|
|
|
3c8a07 |
@@ -1,3 +1,12 @@
|
|
|
3c8a07 |
+2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
3c8a07 |
+
|
|
|
3c8a07 |
+ * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
|
|
|
3c8a07 |
+ -Wl,-z,now.
|
|
|
3c8a07 |
+ (LDFLAGS-tst-minsigstksz-2): Likewise.
|
|
|
3c8a07 |
+ (LDFLAGS-tst-minsigstksz-3): Likewise.
|
|
|
3c8a07 |
+ (LDFLAGS-tst-minsigstksz-3a): Likewise.
|
|
|
3c8a07 |
+ (LDFLAGS-tst-minsigstksz-4): Likewise.
|
|
|
3c8a07 |
+
|
|
|
3c8a07 |
2019-01-16 Zack Weinberg <zackw@panix.com>
|
|
|
3c8a07 |
|
|
|
3c8a07 |
* support/xsignal.h (xalloc_sigstack, xfree_sigstack)
|
|
|
3c8a07 |
diff --git a/signal/Makefile b/signal/Makefile
|
|
|
3c8a07 |
index d5a10d59..7767bb28 100644
|
|
|
3c8a07 |
--- a/signal/Makefile
|
|
|
3c8a07 |
+++ b/signal/Makefile
|
|
|
3c8a07 |
@@ -59,3 +59,11 @@ CFLAGS-sigwait.c += -fexceptions -fasynchronous-unwind-tables
|
|
|
3c8a07 |
CFLAGS-sigwaitinfo.c += -fexceptions -fasynchronous-unwind-tables
|
|
|
3c8a07 |
|
|
|
3c8a07 |
CFLAGS-sigreturn.c += $(no-stack-protector)
|
|
|
3c8a07 |
+
|
|
|
3c8a07 |
+# We don't want to test the lazy resolution stack usage, just the
|
|
|
3c8a07 |
+# execution of the handler and the functions.
|
|
|
3c8a07 |
+LDFLAGS-tst-minsigstksz-1 = -Wl,-z,now
|
|
|
3c8a07 |
+LDFLAGS-tst-minsigstksz-2 = -Wl,-z,now
|
|
|
3c8a07 |
+LDFLAGS-tst-minsigstksz-3 = -Wl,-z,now
|
|
|
3c8a07 |
+LDFLAGS-tst-minsigstksz-3a = -Wl,-z,now
|
|
|
3c8a07 |
+LDFLAGS-tst-minsigstksz-4 = -Wl,-z,now
|
|
|
3c8a07 |
--
|
|
|
3c8a07 |
2.27.0
|
|
|
3c8a07 |
|