_glibc_inc.h 441 B

123456789101112131415161718192021222324252627
  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. /* Is alignment really needed? */
  8. #if __WORDSIZE == 32
  9. # define ENTRY_ALIGN 4
  10. #else
  11. # define ENTRY_ALIGN 2
  12. #endif
  13. #define ENTRY(sym) \
  14. .global sym; \
  15. .align ENTRY_ALIGN; \
  16. .type sym,%function; \
  17. sym:
  18. #define LOC(sym) \
  19. .L ## sym
  20. #define END(sym) \
  21. .size sym,.-sym;