|
|
1.1 root 1: /* @(#)scnhdr.h 2.1 */
2: struct scnhdr {
3: char s_name[8]; /* section name */
4: long s_paddr; /* physical address */
5: long s_vaddr; /* virtual address */
6: long s_size; /* section size */
7: long s_scnptr; /* file ptr to raw data for section */
8: long s_relptr; /* file ptr to relocation */
9: long s_lnnoptr; /* file ptr to line numbers */
10: unsigned short s_nreloc; /* number of relocation entries */
11: unsigned short s_nlnno; /* number of line number entries */
12: long s_flags; /* flags */
13: };
14:
15: #define SCNHDR struct scnhdr
16: #define SCNHSZ sizeof(SCNHDR)
17:
18:
19:
20:
21: /*
22: * Define constants for names of "special" sections
23: */
24:
25: #define _TEXT ".text"
26: #define _DATA ".data"
27: #define _BSS ".bss"
28: #define _TV ".tv"
29:
30:
31:
32:
33: /*
34: * The low 4 bits of s_flags is used as a section "type"
35: */
36:
37: #define STYP_REG 0x00 /* "regular" section: */
38: /* allocated, relocated, loaded */
39: #define STYP_DSECT 0x01 /* "dummy" section: */
40: /* not allocated, relocated,
41: not loaded */
42: #define STYP_NOLOAD 0x02 /* "noload" section: */
43: /* allocated, relocated,
44: not loaded */
45: #define STYP_GROUP 0x04 /* "grouped" section: */
46: /* formed of input sections */
47: #define STYP_PAD 0x08 /* "padding" section: */
48: /* not allocated, not relocated,
49: loaded */
50: #define STYP_COPY 0x10 /* "copy" section: */
51: /* for decision function used
52: by field update; not
53: allocated, not relocated,
54: loaded; reloc & lineno
55: entries processed normally */
56:
57: /*
58: * In a minimal file or an update file, a new function
59: * (as compared with a replaced function) is indicated by S_NEWFCN
60: */
61:
62: #define S_NEWFCN 0x10
63:
64: /*
65: * In 3b Update Files (output of ogen), sections which appear in SHARED
66: * segments of the Pfile will have the S_SHRSEG flag set by ogen, to inform
67: * dufr that updating 1 copy of the proc. will update all process invocations.
68: */
69:
70: #define S_SHRSEG 0x20
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.