diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2019-01-18 08:56:51 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2019-01-18 08:56:51 -0800 |
commit | 562f43620dc4fd06e4d7abc7cd03c05cd8ea98ae (patch) | |
tree | 83ce80bc721f9cb413dda2db3e2a47995a7cd91e /signal | |
parent | 80dfa298741800602a4d5f950e0ebf0f95b2f7cc (diff) | |
download | glibc-562f43620dc4fd06e4d7abc7cd03c05cd8ea98ae.zip glibc-562f43620dc4fd06e4d7abc7cd03c05cd8ea98ae.tar.gz glibc-562f43620dc4fd06e4d7abc7cd03c05cd8ea98ae.tar.bz2 |
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 <carlos@redhat.com>
Diffstat (limited to 'signal')
-rw-r--r-- | signal/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/signal/Makefile b/signal/Makefile index 9597287..06034fe 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 |