diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-03-23 17:56:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-03-23 17:56:28 +0000 |
commit | 03205ec7407b379602abd8bb0c41c62fe28151f4 (patch) | |
tree | 76657f61fec7fb956d0f09834ab6947f3b8aa4a6 /toolchain/uClibc/patches-0.9.29/008-avr32_fix_sa_onstack.patch | |
parent | fc9181c4e25fa55aa13ff2b2960fe45d68080100 (diff) | |
download | mtk-20170518-03205ec7407b379602abd8bb0c41c62fe28151f4.zip mtk-20170518-03205ec7407b379602abd8bb0c41c62fe28151f4.tar.gz mtk-20170518-03205ec7407b379602abd8bb0c41c62fe28151f4.tar.bz2 |
clean up uclibc patch/config version handling a bit
SVN-Revision: 14994
Diffstat (limited to 'toolchain/uClibc/patches-0.9.29/008-avr32_fix_sa_onstack.patch')
-rw-r--r-- | toolchain/uClibc/patches-0.9.29/008-avr32_fix_sa_onstack.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.29/008-avr32_fix_sa_onstack.patch b/toolchain/uClibc/patches-0.9.29/008-avr32_fix_sa_onstack.patch new file mode 100644 index 0000000..5a30861 --- /dev/null +++ b/toolchain/uClibc/patches-0.9.29/008-avr32_fix_sa_onstack.patch @@ -0,0 +1,26 @@ +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(-) + +--- a/libc/sysdeps/linux/avr32/sigaction.c ++++ b/libc/sysdeps/linux/avr32/sigaction.c +@@ -30,7 +30,7 @@ int __libc_sigaction(int signum, const s + 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; |