1 #ifndef __LUNAIX_LD_ELF_H
2 #define __LUNAIX_LD_ELF_H
4 typedef unsigned int elf32_ptr_t;
5 typedef unsigned short elf32_hlf_t;
6 typedef unsigned int elf32_off_t;
7 typedef unsigned int elf32_swd_t;
8 typedef unsigned int elf32_wrd_t;
27 // [0x7f, 'E', 'L', 'F']
28 #define ELFMAGIC 0x464c457fU
39 unsigned char e_ident[16];
41 elf32_hlf_t e_machine;
42 elf32_wrd_t e_version;
48 elf32_hlf_t e_phentsize;
50 elf32_hlf_t e_shentsize;
52 elf32_hlf_t e_shstrndx;
67 #endif /* __LUNAIX_ELF_H */