Skip to content

Commit 19e5e2a

Browse files
committed
csky: Fixup libgcc unwind error
The struct rt_sigframe is also defined in libgcc/config/csky/linux-unwind.h of gcc. Although there is no use for the first three word space, we must keep them the same with linux-unwind.h for member position. The BUG is found in glibc test with the tst-cancel02. The BUG is from commit:bf2416829362 of linux-5.2-rc1 merge window. Signed-off-by: Guo Ren <[email protected]> Signed-off-by: Mao Han <[email protected]> Cc: Arnd Bergmann <[email protected]>
1 parent 9e0babf commit 19e5e2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/csky/kernel/signal.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ static int save_fpu_state(struct sigcontext __user *sc)
3939
#endif
4040

4141
struct rt_sigframe {
42+
/*
43+
* pad[3] is compatible with the same struct defined in
44+
* gcc/libgcc/config/csky/linux-unwind.h
45+
*/
46+
int pad[3];
4247
struct siginfo info;
4348
struct ucontext uc;
4449
};

0 commit comments

Comments
 (0)