_glibc_inc.h 471 B

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