fix lua compile issues on ixp4xx (EABI) by linking libgcc into liblua
[openwrt.git] / toolchain / uClibc / patches / 008-avr32_fix_sa_onstack.patch
1 From 974a769cc135bcfb1ea751db34a84ed6b5ceb509 Mon Sep 17 00:00:00 2001
2 From: Haavard Skinnemoen <hskinnemoen@atmel.com>
3 Date: Fri, 7 Dec 2007 14:02:19 +0100
4 Subject: [PATCH] AVR32: Fix sa_restorer when SA_ONSTACK is set
5
6 I don't remember exactly why we decided to pick the caller's value of
7 sa_restorer when SA_ONSTACK is set, but it seems to break LTP's
8 sigaltstack testcase. Some users have reported problems with
9 sigaltstack as well; hopefully this will fix it.
10
11 Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
12 ---
13 libc/sysdeps/linux/avr32/sigaction.c | 2 +-
14 1 files changed, 1 insertions(+), 1 deletions(-)
15
16 diff --git a/libc/sysdeps/linux/avr32/sigaction.c b/libc/sysdeps/linux/avr32/sigaction.c
17 index a97ff3d..6dcca91 100644
18 --- a/libc/sysdeps/linux/avr32/sigaction.c
19 +++ b/libc/sysdeps/linux/avr32/sigaction.c
20 @@ -30,7 +30,7 @@ int __libc_sigaction(int signum, const struct sigaction *act,
21 kact.k_sa_handler = act->sa_handler;
22 memcpy(&kact.sa_mask, &act->sa_mask, sizeof (kact.sa_mask));
23 kact.sa_flags = act->sa_flags;
24 - if (kact.sa_flags & (SA_RESTORER | SA_ONSTACK))
25 + if (kact.sa_flags & SA_RESTORER)
26 kact.sa_restorer = act->sa_restorer;
27 else
28 kact.sa_restorer = __default_rt_sa_restorer;
29 --
30 1.5.3.4
31
This page took 0.051965 seconds and 5 git commands to generate.