New sequences for 5+ arg syscalls only needed for PIC.
authorUlrich Drepper <drepper@redhat.com>
Fri, 6 Jun 2003 17:31:40 +0000 (17:31 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 6 Jun 2003 17:31:40 +0000 (17:31 +0000)
sysdeps/unix/sysv/linux/arm/linuxthreads/sysdep-cancel.h

index d2043aa..92d8460 100644 (file)
 
 /* 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                                                    \