1 /* 2 * Setup some glibc defines so we can just drop in the 3 * asm files from glibc without any modification. 4 */ 5 6 #include <features.h> 7 #include <bits/wordsize.h> 8 9 /* Is alignment really needed? */ 10 11 #if __WORDSIZE == 32 12 # define ENTRY_ALIGN 4 13 #else 14 # define ENTRY_ALIGN 2 15 #endif 16 17 #define ENTRY(sym) \ 18 .global sym; \ 19 .align ENTRY_ALIGN; \ 20 .type sym,%function; \ 21 sym: 22 23 #define LOC(sym) \ 24 .L ## sym 25 26 #define END(sym) \ 27 .size sym,.-sym; 28