a.out.h 1013 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __ARM_A_OUT_H__
  2. #define __ARM_A_OUT_H__
  3. #include <linux/personality.h>
  4. #include <asm/types.h>
  5. struct exec
  6. {
  7. __u32 a_info; /* Use macros N_MAGIC, etc for access */
  8. __u32 a_text; /* length of text, in bytes */
  9. __u32 a_data; /* length of data, in bytes */
  10. __u32 a_bss; /* length of uninitialized data area for file, in bytes */
  11. __u32 a_syms; /* length of symbol table data in file, in bytes */
  12. __u32 a_entry; /* start address */
  13. __u32 a_trsize; /* length of relocation info for text, in bytes */
  14. __u32 a_drsize; /* length of relocation info for data, in bytes */
  15. };
  16. /*
  17. * This is always the same
  18. */
  19. #define N_TXTADDR(a) (0x00008000)
  20. #define N_TRSIZE(a) ((a).a_trsize)
  21. #define N_DRSIZE(a) ((a).a_drsize)
  22. #define N_SYMSIZE(a) ((a).a_syms)
  23. #define M_ARM 103
  24. #ifdef __KERNEL__
  25. #define STACK_TOP ((current->personality == PER_LINUX_32BIT) ? \
  26. TASK_SIZE : TASK_SIZE_26)
  27. #endif
  28. #ifndef LIBRARY_START_TEXT
  29. #define LIBRARY_START_TEXT (0x00c00000)
  30. #endif
  31. #endif /* __A_OUT_GNU_H__ */