/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__ALPHA_A_OUT_H__ #define _UAPI__ALPHA_A_OUT_H__ #include <linux/types.h> /* * OSF/1 ECOFF header structs. ECOFF files consist of: * - a file header (struct filehdr), * - an a.out header (struct aouthdr), * - one or more section headers (struct scnhdr). * The filhdr's "f_nscns" field contains the * number of section headers. */ struct filehdr { /* OSF/1 "file" header */ __u16 f_magic, f_nscns; __u32 f_timdat; __u64 f_symptr; __u32 f_nsyms; __u16 f_opthdr, f_flags; }; struct aouthdr { __u64 info; /* after that it looks quite normal.. */ __u64 tsize; __u64 dsize; __u64 bsize; __u64 entry; __u64 text_start; /* with a few additions that actually make sense */ __u64 data_start; __u64 bss_start; __u32 gprmask, fprmask; /* bitmask of general & floating point regs used in binary */ __u64 gpvalue; }; struct scnhdr { char s_name[8]; __u64 s_paddr; __u64 s_vaddr; __u64 s_size; __u64 s_scnptr; __u64 s_relptr; __u64 s_lnnoptr; __u16 s_nreloc; __u16 s_nlnno; __u32 s_flags; }; struct exec { /* OSF/1 "file" header */ struct filehdr fh; struct aouthdr ah; }; /* * Define's so that the kernel exec code can access the a.out header * fields... */ #define a_info ah.info #define a_text ah.tsize #define a_data ah.dsize #define a_bss ah.bsize #define a_entry ah.entry #define a_textstart ah.text_start #define a_datastart ah.data_start #define a_bssstart ah.bss_start #define a_gprmask ah.gprmask #define a_fprmask ah.fprmask #define a_gpvalue ah.gpvalue #define N_TXTADDR(x) ((x).a_textstart) #define N_DATADDR(x) ((x).a_datastart) #define N_BSSADDR(x) ((x).a_bssstart) #define N_DRSIZE(x) 0 #define N_TRSIZE(x) 0 #define N_SYMSIZE(x) 0 #define AOUTHSZ sizeof(struct aouthdr) #define SCNHSZ sizeof(struct scnhdr) #define SCNROUND 16 #define N_TXTOFF(x) \ ((long) N_MAGIC(x) == ZMAGIC ? 0 : \ (sizeof(struct exec) + (x).fh.f_nscns*SCNHSZ + SCNROUND - 1) & ~(SCNROUND - 1)) #endif /* _UAPI__ALPHA_A_OUT_H__ */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Kbuild | File | 101 B | 0644 |
|
a.out.h | File | 2 KB | 0644 |
|
auxvec.h | File | 774 B | 0644 |
|
bitsperlong.h | File | 237 B | 0644 |
|
byteorder.h | File | 194 B | 0644 |
|
compiler.h | File | 4.12 KB | 0644 |
|
console.h | File | 1.15 KB | 0644 |
|
errno.h | File | 5.31 KB | 0644 |
|
fcntl.h | File | 1.86 KB | 0644 |
|
fpu.h | File | 4.52 KB | 0644 |
|
gentrap.h | File | 1.43 KB | 0644 |
|
ioctl.h | File | 2.3 KB | 0644 |
|
ioctls.h | File | 4.32 KB | 0644 |
|
ipcbuf.h | File | 95 B | 0644 |
|
kvm_para.h | File | 97 B | 0644 |
|
mman.h | File | 3.45 KB | 0644 |
|
msgbuf.h | File | 922 B | 0644 |
|
pal.h | File | 1.01 KB | 0644 |
|
param.h | File | 313 B | 0644 |
|
poll.h | File | 93 B | 0644 |
|
posix_types.h | File | 513 B | 0644 |
|
ptrace.h | File | 1.66 KB | 0644 |
|
reg.h | File | 1005 B | 0644 |
|
regdef.h | File | 1.04 KB | 0644 |
|
resource.h | File | 761 B | 0644 |
|
sembuf.h | File | 670 B | 0644 |
|
setup.h | File | 1.43 KB | 0644 |
|
shmbuf.h | File | 1.08 KB | 0644 |
|
sigcontext.h | File | 891 B | 0644 |
|
siginfo.h | File | 468 B | 0644 |
|
signal.h | File | 3.08 KB | 0644 |
|
socket.h | File | 2.54 KB | 0644 |
|
sockios.h | File | 497 B | 0644 |
|
stat.h | File | 1.05 KB | 0644 |
|
statfs.h | File | 314 B | 0644 |
|
swab.h | File | 1.25 KB | 0644 |
|
sysinfo.h | File | 775 B | 0644 |
|
termbits.h | File | 5.14 KB | 0644 |
|
termios.h | File | 1.49 KB | 0644 |
|
types.h | File | 884 B | 0644 |
|
unistd.h | File | 14.99 KB | 0644 |
|