1 ORIGFUNC
= ${.PREFIX
:S
/^compat
//}
2 RENAMEDFUNC
=${.PREFIX
:S
/^compat__
//:C
/([0-9]{2})$//}
3 .if
(${MACHINE_ARCH} == "i386")
5 PICJMP
= jmpl
*PIC_PLT
(${ORIGFUNC})
7 .elif
(${MACHINE_ARCH} == "arm")
9 PICJMP
= bl PIC_SYM
(${ORIGFUNC}, PLT
)
15 printf
'/* MINIX3 */ \n\
17 * Compatibility jump table for renamed symbols. \n\
19 * DO NOT EDIT: this file is automatically generated. \n\
21 #include <machine/asm.h> \n\
22 .global ${RENAMEDFUNC}; \n\
23 .global ${ORIGFUNC}; \n\
24 .type ${RENAMEDFUNC},${FUNCTYPE} \n\