1 #ifndef ASMNAMES_H 2 #define ASMNAMES_H 3 4 #define C2(X, Y) X ## Y 5 #define C1(X, Y) C2(X, Y) 6 #ifdef __USER_LABEL_PREFIX__ 7 # define C(X) C1(__USER_LABEL_PREFIX__, X) 8 #else 9 # define C(X) X 10 #endif 11 12 #ifdef __APPLE__ 13 # define L(X) C1(L, X) 14 #else 15 # define L(X) C1(.L, X) 16 #endif 17 18 #if defined(__ELF__) && defined(__PIC__) 19 # define PLT(X) X@PLT 20 #else 21 # define PLT(X) X 22 #endif 23 24 #ifdef __ELF__ 25 # define ENDF(X) .type X,@function; .size X, . - X 26 #else 27 # define ENDF(X) 28 #endif 29 30 #endif /* ASMNAMES_H */ 31