1 /* We can't use the real errno in ldso, since it has not yet
2 * been dynamicly linked in yet. */
3 #include "sys/syscall.h"
6 #define __set_errno(X) {(_dl_errno) = (X);}
7 /* _call_via_rX calls are used in thumb ldso because of calls via
8 * function pointers, but ldso is not linked with anything which
9 * provides them, so define them here (only required for thumb).
11 #if defined(__thumb__)
13 ".macro call_via register\n"
14 " .global _call_via_\\register\n"
15 " .hidden _call_via_\\register\n"
16 " .type _call_via_\\register, %function\n"
18 "_call_via_\\register:\n"
20 " .size _call_via_\\register, . - _call_via_\\register\n"