diff options
| author | Ulrich Drepper <drepper@redhat.com> | 2003-06-06 17:31:40 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 2003-06-06 17:31:40 +0000 |
| commit | 1ca4471f970f0ef6ed4d6104efb3e09383c4868b (patch) | |
| tree | 6202db1cb08f766772e246065933028f1569bf06 | |
| parent | 48e0ec3c4856a52105dd9771aac7865f3b6a6c3a (diff) | |
| download | glibc-1ca4471f970f0ef6ed4d6104efb3e09383c4868b.tar.xz glibc-1ca4471f970f0ef6ed4d6104efb3e09383c4868b.zip | |
New sequences for 5+ arg syscalls only needed for PIC.
| -rw-r--r-- | sysdeps/unix/sysv/linux/arm/linuxthreads/sysdep-cancel.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/linuxthreads/sysdep-cancel.h b/sysdeps/unix/sysv/linux/arm/linuxthreads/sysdep-cancel.h index d2043aad91..92d8460e26 100644 --- a/sysdeps/unix/sysv/linux/arm/linuxthreads/sysdep-cancel.h +++ b/sysdeps/unix/sysv/linux/arm/linuxthreads/sysdep-cancel.h @@ -26,12 +26,14 @@ /* We push lr onto the stack, so we have to use ldmib instead of ldmia to find the saved arguments. */ -#undef DOARGS_5 -#undef DOARGS_6 -#undef DOARGS_7 -#define DOARGS_5 str r4, [sp, $-4]!; ldr r4, [sp, $8]; -#define DOARGS_6 mov ip, sp; stmfd sp!, {r4, r5}; ldmib ip, {r4, r5}; -#define DOARGS_7 mov ip, sp; stmfd sp!, {r4, r5, r6}; ldmib ip, {r4, r5, r6}; +# ifdef PIC +# undef DOARGS_5 +# undef DOARGS_6 +# undef DOARGS_7 +# define DOARGS_5 str r4, [sp, $-4]!; ldr r4, [sp, $8]; +# define DOARGS_6 mov ip, sp; stmfd sp!, {r4, r5}; ldmib ip, {r4, r5}; +# define DOARGS_7 mov ip, sp; stmfd sp!, {r4, r5, r6}; ldmib ip, {r4, r5, r6}; +# endif # undef PSEUDO_RET # define PSEUDO_RET \ |
