aout_machdep.h revision 12
111507SCurtis.Dunham@arm.com/* $Id$ */ 211507SCurtis.Dunham@arm.com 311959Sgabeblack@google.com#ifndef __AOUT_MACHDEP_H__ 411959Sgabeblack@google.com#define __AOUT_MACHDEP_H__ 511959Sgabeblack@google.com 611959Sgabeblack@google.com/// 711960Sgabeblack@google.com/// Funky Alpha 64-bit a.out header used for PAL code. 811960Sgabeblack@google.com/// 911960Sgabeblack@google.comstruct aout_exechdr { 1011960Sgabeblack@google.com uint16_t magic; 1111960Sgabeblack@google.com uint16_t vstamp; 1211959Sgabeblack@google.com uint16_t bldrev; 1311959Sgabeblack@google.com uint16_t padcell; 1411959Sgabeblack@google.com uint64_t tsize; // text segment size 1511959Sgabeblack@google.com uint64_t dsize; // data segment size 1611959Sgabeblack@google.com uint64_t bsize; // bss segment size 1711959Sgabeblack@google.com uint64_t entry; // entry point 1811959Sgabeblack@google.com uint64_t text_start; // text base address 1911959Sgabeblack@google.com uint64_t data_start; // data base address 2011959Sgabeblack@google.com uint64_t bss_start; // bss base address 2111959Sgabeblack@google.com uint32_t gprmask; 2211959Sgabeblack@google.com uint32_t fprmask; 2311959Sgabeblack@google.com uint64_t gp_value; 2411959Sgabeblack@google.com}; 2511959Sgabeblack@google.com 2611959Sgabeblack@google.com#define AOUT_LDPGSZ 8192 2711959Sgabeblack@google.com 2811959Sgabeblack@google.com#define N_GETMAGIC(ex) ((ex).magic) 2911959Sgabeblack@google.com 3011959Sgabeblack@google.com#define N_BADMAX 3111959Sgabeblack@google.com 3211959Sgabeblack@google.com#define N_TXTADDR(ex) ((ex).text_start) 3311959Sgabeblack@google.com#define N_DATADDR(ex) ((ex).data_start) 3411959Sgabeblack@google.com#define N_BSSADDR(ex) ((ex).bss_start) 3511959Sgabeblack@google.com 3611959Sgabeblack@google.com#define N_TXTOFF(ex) \ 3711959Sgabeblack@google.com (N_GETMAGIC(ex) == ZMAGIC ? 0 : sizeof(struct aout_exechdr)) 3811959Sgabeblack@google.com 3911959Sgabeblack@google.com#define N_DATOFF(ex) N_ALIGN(ex, N_TXTOFF(ex) + (ex).tsize) 4011959Sgabeblack@google.com 4111959Sgabeblack@google.com#endif /* !__AOUT_MACHDEP_H__*/ 4211959Sgabeblack@google.com