~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/alpha/include/uapi/asm/a.out.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef _UAPI__ALPHA_A_OUT_H__
  3 #define _UAPI__ALPHA_A_OUT_H__
  4 
  5 #include <linux/types.h>
  6 
  7 /*
  8  * OSF/1 ECOFF header structs.  ECOFF files consist of:
  9  *      - a file header (struct filehdr),
 10  *      - an a.out header (struct aouthdr),
 11  *      - one or more section headers (struct scnhdr). 
 12  *        The filhdr's "f_nscns" field contains the
 13  *        number of section headers.
 14  */
 15 
 16 struct filehdr
 17 {
 18         /* OSF/1 "file" header */
 19         __u16 f_magic, f_nscns;
 20         __u32 f_timdat;
 21         __u64 f_symptr;
 22         __u32 f_nsyms;
 23         __u16 f_opthdr, f_flags;
 24 };
 25 
 26 struct aouthdr
 27 {
 28         __u64 info;             /* after that it looks quite normal.. */
 29         __u64 tsize;
 30         __u64 dsize;
 31         __u64 bsize;
 32         __u64 entry;
 33         __u64 text_start;       /* with a few additions that actually make sense */
 34         __u64 data_start;
 35         __u64 bss_start;
 36         __u32 gprmask, fprmask; /* bitmask of general & floating point regs used in binary */
 37         __u64 gpvalue;
 38 };
 39 
 40 struct scnhdr
 41 {
 42         char    s_name[8];
 43         __u64   s_paddr;
 44         __u64   s_vaddr;
 45         __u64   s_size;
 46         __u64   s_scnptr;
 47         __u64   s_relptr;
 48         __u64   s_lnnoptr;
 49         __u16   s_nreloc;
 50         __u16   s_nlnno;
 51         __u32   s_flags;
 52 };
 53 
 54 struct exec
 55 {
 56         /* OSF/1 "file" header */
 57         struct filehdr          fh;
 58         struct aouthdr          ah;
 59 };
 60 
 61 /*
 62  * Define's so that the kernel exec code can access the a.out header
 63  * fields...
 64  */
 65 #define a_info          ah.info
 66 #define a_text          ah.tsize
 67 #define a_data          ah.dsize
 68 #define a_bss           ah.bsize
 69 #define a_entry         ah.entry
 70 #define a_textstart     ah.text_start
 71 #define a_datastart     ah.data_start
 72 #define a_bssstart      ah.bss_start
 73 #define a_gprmask       ah.gprmask
 74 #define a_fprmask       ah.fprmask
 75 #define a_gpvalue       ah.gpvalue
 76 
 77 #define N_TXTADDR(x) ((x).a_textstart)
 78 #define N_DATADDR(x) ((x).a_datastart)
 79 #define N_BSSADDR(x) ((x).a_bssstart)
 80 #define N_DRSIZE(x) 0
 81 #define N_TRSIZE(x) 0
 82 #define N_SYMSIZE(x) 0
 83 
 84 #define AOUTHSZ         sizeof(struct aouthdr)
 85 #define SCNHSZ          sizeof(struct scnhdr)
 86 #define SCNROUND        16
 87 
 88 #define N_TXTOFF(x) \
 89   ((long) N_MAGIC(x) == ZMAGIC ? 0 : \
 90    (sizeof(struct exec) + (x).fh.f_nscns*SCNHSZ + SCNROUND - 1) & ~(SCNROUND - 1))
 91 
 92 #endif /* _UAPI__ALPHA_A_OUT_H__ */
 93 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php