AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
(�
� SCNHDR ( 4) SCNHDR ( 4) NAME scnhdr - section header for a common object file SYNOPSIS #include DESCRIPTION Every common object file has a table of section headers to specify the layout of the data within the file. Each section within an object file has its own header. The C structure appears below. struct scnhdr { } ; char long long long long long long unsigned short unsigned short long s_name[SYMNMLEN]; I* section name *I s_paddr; I* physical address *I s_vaddr; I* virtual address *I s_size; I* section size *I s_scnptr; I* file ptr to raw data *I s_relptr; I* file ptr to relocation *I s_lnnoptr; I* file ptr to line numbers *I s_nreloc; I* # reloc entries *I s_nlnno; I* # line number entries *I s_flags; I* flags *I File pointers are byte offsets into the file; they can be used as the offset in a call to fs eek(3S). If a section is initialized, the file contains the actual bytes. An uninitialized section is somewhat different. It has a size, symbols defined in it, and symbols that refer to it. But it can have no relocation entries, line numbers, or data. Consequently, an uninitialized section has no raw data in the object file, and the values for s_scnptr, s_relptr, s_lnnoptr , s_nreloc, and s_nlnno are zero. SEE ALSO ld( l ), fseek(3S), a. out( 4). - 1 -
- Page 1065: FILEHDR (4) (not. on PDP-11) FILEHD
- Page 1068 and 1069: FONT ( 4) (AT&T UNIX PC only ) FONT
- Page 1070 and 1071: I�
- Page 1072 and 1073: FS (4) FS (4) S_type indicates the
- Page 1074 and 1075: (�
- Page 1076 and 1077: FSPEC ( 4) FSPEC ( 4) Several UNIX
- Page 1078 and 1079: GETTYDEFS ( 4) GETTYDEFS ( 4 ) sett
- Page 1080 and 1081: � , __
- Page 1082 and 1083: INITTAB ( 4) INITTAB ( 4) I etclini
- Page 1084 and 1085: I I �I I I I I � I I 1� 1 1 I
- Page 1086 and 1087: (� .
- Page 1089 and 1090: � LDFCN( 4) LDFCN( 4) NAME ldfcn
- Page 1091: LDFCN( 4) LDFCN{4) REWIND(Idptr) FE
- Page 1095 and 1096: MASTER ( 4) MASTER (4) NAME master
- Page 1097: MNTTAB (4) MNTTAB (4) NAME mnttab -
- Page 1100 and 1101: PASSWD (4) PASSWD ( 4) Haphazard mo
- Page 1102 and 1103: PHONE (4) 02 (short) 03 (short) 04
- Page 1104 and 1105: y . /
- Page 1107: PROFILE ( 4) PROFILE ( 4) NAME prof
- Page 1110 and 1111: RELOC (4) RELOC ( 4) R_ABS The refe
- Page 1112 and 1113: (�
- Page 1114 and 1115: SCCSFILE ( 4) SCCSFILE ( 4) time of
- Page 1119 and 1120: SHLill ( 4) (AT&T UNIX PC only ) SH
- Page 1121 and 1122: SYMS ( 4) SYMS ( 4) NAME syms - com
- Page 1123 and 1124: UA ( 4) (AT&T UNIX PC only ) UA ( 4
- Page 1125 and 1126: UA ( 4) Rename (AT&T UNIX PC only )
- Page 1127 and 1128: UA ( 4) (AT&T UNIX PC only ) UA (4)
- Page 1129 and 1130: UA ( 4) (AT&T UNIX PC only ) UA ( 4
- Page 1131 and 1132: UTMP ( 4) UTMP ( 4) NAME utmp, wtmp
- Page 1133: INTRO ( 5) NAME intro - introductio
- Page 1136 and 1137: ,!)
- Page 1139: .� EQNCHAR (5) EQNCHAR (5) NAME e
- Page 1143 and 1144: GREEK (5) GREEK (5) NAME greek - gr
- Page 1145 and 1146: MAN(5) MAN ( 5) NAME man - macros f
- Page 1147 and 1148: MAN (5) MAN (5) . � FILES The mac
- Page 1149 and 1150: MM (5) MM ( 5 ) NAME mm - the MM ma
- Page 1151 and 1152: MODEMCAP ( 5) ( AT&T UNIX PC Only )
- Page 1153: � MPTX ( 5 ) MPTX ( 5 ) NAME mptx
- Page 1156 and 1157: REGEXP (5) REGEXP (5) ERROR( val )
- Page 1158 and 1159: REGEXP (5) REGEXP (5) #define UNGET
- Page 1160 and 1161: TERM (5) TERM ( 5) Commands whose b
- Page 1163 and 1164: TERMCAP (S) TERMCAP (S) NAME termca
- Page 1165 and 1166: TERMCAP (5) ti uc ue ug ul up us vb
�<br />
SCNHDR ( 4) SCNHDR ( 4)<br />
NAME<br />
scnhdr - section header for a common object file<br />
SYNOPSIS<br />
#include <br />
DESCRIPTION<br />
Every common object file has a table of section headers to specify<br />
the layout of the data within the file. Each section within an<br />
object file has its own header. The C structure appears below.<br />
struct scnhdr<br />
{<br />
} ;<br />
char<br />
long<br />
long<br />
long<br />
long<br />
long<br />
long<br />
unsigned short<br />
unsigned short<br />
long<br />
s_name[SYMNMLEN]; I* section name *I<br />
s_paddr; I* physical address *I<br />
s_vaddr; I* virtual address *I<br />
s_size; I* section size *I<br />
s_scnptr; I* file ptr to raw data *I<br />
s_relptr; I* file ptr to relocation *I<br />
s_lnnoptr; I* file ptr to line numbers *I<br />
s_nreloc; I* # reloc entries *I<br />
s_nlnno; I* # line number entries *I<br />
s_flags; I* flags *I<br />
File pointers are byte offsets into the file; they can be used as the<br />
offset in a call to fs eek(3S). If a section is initialized, the file contains<br />
the actual bytes. An uninitialized section is somewhat<br />
different. It has a size, symbols defined in it, and symbols that<br />
refer to it. But it can have no relocation entries, line numbers, or<br />
data. Consequently, an uninitialized section has no raw data in<br />
the object file, and the values for s_scnptr, s_relptr, s_lnnoptr ,<br />
s_nreloc, and s_nlnno are zero.<br />
SEE ALSO<br />
ld( l ), fseek(3S), a. out( 4).<br />
- 1 -