Intel XENIX 286 Programmers Guide (86) - Tenox.tc
Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc
XENIX Programming Programming Commands hd r -Displays selected parts of object files. Syntax hdr [ -dhprSt ] file ... Description hdr displays object file headers, symbol tables, and text or data relocation records in human-readable formats. It also prints out seek positions for the various segments in the object file. a.out, x.out, and x.out segmented formats and archives are understood. The symbol table format consists of six fields. In a.out formats, the third field is missing. The first field is the symbol's index or position in the symbol table, printed in decimal. The index of the first entry is zero. The second field is the type, printed in hexadecimal. The third field is the s_seg field, printed in hexadecimal. The fourth field is the symbol's value in hexadecimal. The fifth field is a single character that represents the symbol's type, as in nm except that C common is not recognized as a special case of "undefined." The last field is the symbol name. If long form relocation is present, the format consists of six fields. The first is the descriptor, printed in hexadecimal. The second is the symbol ID, or index, in decimal. This field is used for external relocations as an index into the symbol table. It should reference an undefined symbol table entry. The third field is the position, or offset, within the current segment at which relocation is to take place; it is printed in hexadecimal. The fourth field is the name of the segment referenced in the relocation: text, data, bss, or EXT for external. The fifth field is the size of relocation: byte, word (2 bytes), or long (4 bytes). The last field, if present, will indicate that the relocation is relative. If short form relocation is present, the format consist of three fields. The first field is the relocation command in hexadecimal. The second field contains the name of the segment referenced: text or data. The last field indicates the size of relocation: word or long. B-71
Programming Commands XENIX Programming hdr (continued) Options are as follows: -h Causes the object file header and extended header to be printed out. Each field in the header or extended header is labeled. This is the default option. -d Causes the data relocation records to be printed out. -t Causes the text relocation records to be printed out. -r Causes both text and data relocation to be printed. -p Causes seek positions to be printed out as defined by macros in the include file, . -s Prints the symbol table. -8 Prints the file segment table with a header (only applicable to files in segmented format). See Also nm a.out in "File Formats" in the XENIX 286 C Library Guide B-72
- Page 286 and 287: XENIX Programming Programming Comma
- Page 288 and 289: XENIX Programming Programming Comma
- Page 290 and 291: XENIX Programming Programm ing Comm
- Page 292 and 293: XENIX Programming Programming Comma
- Page 294 and 295: XENIX Programming Programming Comma
- Page 296 and 297: XENIX Programming Programm ing Comm
- Page 298 and 299: XENIX Programming Programming Comma
- Page 300 and 301: XENIX Programming Programming Comma
- Page 302 and 303: XENIX Programming Programming Comma
- Page 304 and 305: XENIX Programming Programming Comma
- Page 306 and 307: XENIX Programming Programming Comma
- Page 308 and 309: XENIX Programming Programming Comma
- Page 310 and 311: XENIX Programming Programming Comma
- Page 312 and 313: XENIX Programming Programming Comma
- Page 314 and 315: XENIX Programm ing Programming Comm
- Page 316 and 317: XENIX Programming Programming Comma
- Page 318 and 319: XENIX Programming Programming Comma
- Page 320 and 321: XENIX Programming Programming Comma
- Page 322 and 323: XENIX Programming Programming Comma
- Page 324 and 325: XENIX Programming Programming Comma
- Page 326 and 327: XENIX Programming Programming Comma
- Page 328 and 329: XENIX Programming Programming Comma
- Page 330 and 331: XENIX Programming Programming Comma
- Page 332 and 333: XENIX Programming Programming Comma
- Page 334 and 335: XENIX Programming Programming Comma
- Page 338 and 339: XENIX Programming Programming Comma
- Page 340 and 341: XENIX Programming Programming Comma
- Page 342 and 343: XENIX Programming Programming Comma
- Page 344 and 345: XENIX Programming lex (continued) E
- Page 346 and 347: XENIX Programming Programming Comma
- Page 348 and 349: XENIX Programming Programming Comma
- Page 350 and 351: XENIX Programming Programming Comma
- Page 352 and 353: XENIX Programming Programming Comma
- Page 354 and 355: XENIX Programming Programming Comma
- Page 356 and 357: XENIX Programming Programming Comma
- Page 358 and 359: XENIX Programming Programming Comma
- Page 360 and 361: XENIX Programm ing Programming Comm
- Page 362 and 363: XENIX Programming Programming Comma
- Page 364 and 365: XENIX Programming prs (continued) :
- Page 366 and 367: XENIX Programming Programming Comma
- Page 368 and 369: XENIX Programming Programm ing Comm
- Page 370 and 371: XENIX Programming Programming Comma
- Page 372 and 373: XENIX Programming Programm ing Comm
- Page 374 and 375: XENIX Programming Programming Comma
- Page 376 and 377: XENIX Programming Programming Comma
- Page 378 and 379: XENIX Programming Programming Comma
- Page 380 and 381: XENIX Programming Programming Comma
- Page 382 and 383: XENIX Programming Programming Comma
- Page 384 and 385: XENIX Programming Programming Comma
Programming Commands <strong>XENIX</strong> Programming<br />
hdr (continued)<br />
Options are as follows:<br />
-h Causes the object file header and extended header to be printed out. Each field<br />
in the header or extended header is labeled. This is the default option.<br />
-d Causes the data relocation records to be printed out.<br />
-t Causes the text relocation records to be printed out.<br />
-r Causes both text and data relocation to be printed.<br />
-p Causes seek positions to be printed out as defined by macros in the include file,<br />
.<br />
-s Prints the symbol table.<br />
-8 Prints the file segment table with a header (only applicable to files in segmented<br />
format).<br />
See Also<br />
nm<br />
a.out in "File Formats" in the <strong>XENIX</strong> <strong>2<strong>86</strong></strong> C Library <strong>Guide</strong><br />
B-72