Skip to content
Commit 8b849f70 authored by Daniel Cederman's avatar Daniel Cederman Committed by Adhemerval Zanella
Browse files

sparc: Remove unwind information from signal return stubs [BZ #31244]



The functions were previously written in C, but were not compiled
with unwind information. The ENTRY/END macros includes .cfi_startproc
and .cfi_endproc which adds unwind information. This caused the
tests cleanup-8 and cleanup-10 in the GCC testsuite to fail.
This patch adds a version of the ENTRY/END macros without the
CFI instructions that can be used instead.

sigaction registers a restorer address that is located two instructions
before the stub function. This patch adds a two instruction padding to
avoid that the unwinder accesses the unwind information from the function
that the linker has placed right before it in memory. This fixes an issue
with pthread_cancel that caused tst-mutex8-static (and other tests) to fail.

Signed-off-by: default avatarDaniel Cederman <cederman@gaisler.com>
Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>

(cherry picked from commit 7bd06985)
parent 18da9067
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment