_glibc_inc.h 540 B

123456789101112131415161718192021222324252627282930313233
  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. .align ENTRY_ALIGN; \
  15. .type sym,%function; \
  16. sym:
  17. #define BP_SYM(sym) sym
  18. #define L(sym) LOC(sym)
  19. #define LOC(sym) \
  20. .L ## sym
  21. #define END(sym) \
  22. .size sym,.-sym;
  23. #undef weak_alias
  24. #define weak_alias(sym, alias) \
  25. .weak alias; \
  26. alias = sym;