summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/syscalls
diff options
context:
space:
mode:
authorMatt Fischer <matt.fischer@garmin.com>2010-01-11 10:02:06 +0800
committerGarmin Android technology group <android@garmin.com>2010-05-12 14:18:36 -0500
commite4fa46e75cd0d433b5c6c064720ed7e195cba7c8 (patch)
tree88ab07e29e66cff45b3588718fa778c8218c4b6e /libc/arch-arm/syscalls
parentc3581dc78a51180d3550d0d04596657cb2db852c (diff)
downloadbionic-e4fa46e75cd0d433b5c6c064720ed7e195cba7c8.zip
bionic-e4fa46e75cd0d433b5c6c064720ed7e195cba7c8.tar.gz
bionic-e4fa46e75cd0d433b5c6c064720ed7e195cba7c8.tar.bz2
Set SA_RESTORER in sigaction()
GDB looks for specific opcode sequences when trying to recognize a stack frame as a signal trampoline. The sequences it looks for happen to be those created when SA_RESTORER is set, since glibc always sets a restorer. This patch does the same here, so that the trampolines can be correctly identified. Change-Id: I0ac574a68818cb24d939c3527f3aaeb04b853d04
Diffstat (limited to 'libc/arch-arm/syscalls')
-rw-r--r--libc/arch-arm/syscalls/__sigaction.S (renamed from libc/arch-arm/syscalls/sigaction.S)6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/arch-arm/syscalls/sigaction.S b/libc/arch-arm/syscalls/__sigaction.S
index 2696f1e..aba44b8 100644
--- a/libc/arch-arm/syscalls/sigaction.S
+++ b/libc/arch-arm/syscalls/__sigaction.S
@@ -2,12 +2,12 @@
#include <sys/linux-syscalls.h>
.text
- .type sigaction, #function
- .globl sigaction
+ .type __sigaction, #function
+ .globl __sigaction
.align 4
.fnstart
-sigaction:
+__sigaction:
.save {r4, r7}
stmfd sp!, {r4, r7}
ldr r7, =__NR_sigaction