diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-04-24 09:03:12 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-04-24 09:03:12 +0000 |
commit | 13db6302c4ba0d270f95baaef2ebc97028de2d84 (patch) | |
tree | 712668039f05fcbf1402a89193aa974c8600b575 /toolchain/uClibc/uClibc-0.9.29-fix-sa_onstack.patch.avr32 | |
parent | ec02c78dd4f78ea5650f7dd78b944f7d7d802444 (diff) | |
download | buildroot-novena-13db6302c4ba0d270f95baaef2ebc97028de2d84.tar.gz buildroot-novena-13db6302c4ba0d270f95baaef2ebc97028de2d84.zip |
uClibc: use .patch.$ARCH naming convention
Diffstat (limited to 'toolchain/uClibc/uClibc-0.9.29-fix-sa_onstack.patch.avr32')
-rw-r--r-- | toolchain/uClibc/uClibc-0.9.29-fix-sa_onstack.patch.avr32 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/toolchain/uClibc/uClibc-0.9.29-fix-sa_onstack.patch.avr32 b/toolchain/uClibc/uClibc-0.9.29-fix-sa_onstack.patch.avr32 new file mode 100644 index 000000000..722decdbd --- /dev/null +++ b/toolchain/uClibc/uClibc-0.9.29-fix-sa_onstack.patch.avr32 @@ -0,0 +1,31 @@ +From 974a769cc135bcfb1ea751db34a84ed6b5ceb509 Mon Sep 17 00:00:00 2001 +From: Haavard Skinnemoen <hskinnemoen@atmel.com> +Date: Fri, 7 Dec 2007 14:02:19 +0100 +Subject: [PATCH] AVR32: Fix sa_restorer when SA_ONSTACK is set + +I don't remember exactly why we decided to pick the caller's value of +sa_restorer when SA_ONSTACK is set, but it seems to break LTP's +sigaltstack testcase. Some users have reported problems with +sigaltstack as well; hopefully this will fix it. + +Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> +--- + libc/sysdeps/linux/avr32/sigaction.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/libc/sysdeps/linux/avr32/sigaction.c b/libc/sysdeps/linux/avr32/sigaction.c +index a97ff3d..6dcca91 100644 +--- a/libc/sysdeps/linux/avr32/sigaction.c ++++ b/libc/sysdeps/linux/avr32/sigaction.c +@@ -30,7 +30,7 @@ int __libc_sigaction(int signum, const struct sigaction *act, + kact.k_sa_handler = act->sa_handler; + memcpy(&kact.sa_mask, &act->sa_mask, sizeof (kact.sa_mask)); + kact.sa_flags = act->sa_flags; +- if (kact.sa_flags & (SA_RESTORER | SA_ONSTACK)) ++ if (kact.sa_flags & SA_RESTORER) + kact.sa_restorer = act->sa_restorer; + else + kact.sa_restorer = __default_rt_sa_restorer; +-- +1.5.3.4 + |