ldso.h 822 B

1234567891011121314151617181920212223242526272829303132
  1. #include <features.h>
  2. /* Pull in compiler and arch stuff */
  3. #include <stdlib.h>
  4. #include <stdarg.h>
  5. /* Pull in the arch specific type information */
  6. #include <sys/types.h>
  7. /* Now the ldso specific headers */
  8. #include <ld_elf.h>
  9. #include <ld_syscall.h>
  10. #include <ld_hash.h>
  11. #include <ld_string.h>
  12. /* Pull in the arch specific page size */
  13. #include <asm/page.h>
  14. #ifndef PAGE_SIZE
  15. # define PAGE_SHIFT 12
  16. # define PAGE_SIZE (1UL << PAGE_SHIFT)
  17. #endif
  18. /* Prepare for the case that `__builtin_expect' is not available. */
  19. #if __GNUC__ == 2 && __GNUC_MINOR__ < 96
  20. #define __builtin_expect(x, expected_value) (x)
  21. #endif
  22. #ifndef likely
  23. # define likely(x) __builtin_expect((!!(x)),1)
  24. #endif
  25. #ifndef unlikely
  26. # define unlikely(x) __builtin_expect((!!(x)),0)
  27. #endif
  28. #ifndef __LINUX_COMPILER_H
  29. #define __LINUX_COMPILER_H
  30. #endif