From 562f43620dc4fd06e4d7abc7cd03c05cd8ea98ae Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 18 Jan 2019 08:56:51 -0800 Subject: Disable lazy binding on tests for minimal signal handler Since MINSIGSTKSZ may not have sufficent stack space to allow lazy binding, build tests for minimal signal handler with -Wl,-z,now to disable lazy binding. * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to -Wl,-z,now. (LDFLAGS-tst-minsigstksz-2): Likewise. (LDFLAGS-tst-minsigstksz-3): Likewise. (LDFLAGS-tst-minsigstksz-3a): Likewise. (LDFLAGS-tst-minsigstksz-4): Likewise. Reviewed-by: Carlos O'Donell --- signal/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'signal') diff --git a/signal/Makefile b/signal/Makefile index 9597287bca..06034fee8e 100644 --- a/signal/Makefile +++ b/signal/Makefile @@ -59,3 +59,11 @@ CFLAGS-sigwait.c += -fexceptions -fasynchronous-unwind-tables CFLAGS-sigwaitinfo.c += -fexceptions -fasynchronous-unwind-tables CFLAGS-sigreturn.c += $(no-stack-protector) + +# We don't want to test the lazy resolution stack usage, just the +# execution of the handler and the functions. +LDFLAGS-tst-minsigstksz-1 = -Wl,-z,now +LDFLAGS-tst-minsigstksz-2 = -Wl,-z,now +LDFLAGS-tst-minsigstksz-3 = -Wl,-z,now +LDFLAGS-tst-minsigstksz-3a = -Wl,-z,now +LDFLAGS-tst-minsigstksz-4 = -Wl,-z,now -- cgit 1.4.1