09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>XENIX</strong> Programming Programming Commands<br />

hd r -Displays selected parts of object files.<br />

Syntax<br />

hdr [ -dhprSt ] file ...<br />

Description<br />

hdr displays object file headers, symbol tables, and text or data relocation records in<br />

human-readable formats. It also prints out seek positions for the various segments in<br />

the object file.<br />

a.out, x.out, and x.out segmented formats and archives are understood.<br />

The symbol table format consists of six fields. In a.out formats, the third field is<br />

missing. The first field is the symbol's index or position in the symbol table, printed in<br />

decimal. The index of the first entry is zero. The second field is the type, printed in<br />

hexadecimal. The third field is the s_seg field, printed in hexadecimal. The fourth field<br />

is the symbol's value in hexadecimal. The fifth field is a single character that<br />

represents the symbol's type, as in nm except that C common is not recognized as a<br />

special case of "undefined." The last field is the symbol name.<br />

If long form relocation is present, the format consists of six fields. The first is the<br />

descriptor, printed in hexadecimal. The second is the symbol ID, or index, in decimal.<br />

This field is used for external relocations as an index into the symbol table. It should<br />

reference an undefined symbol table entry. The third field is the position, or offset,<br />

within the current segment at which relocation is to take place; it is printed in<br />

hexadecimal. The fourth field is the name of the segment referenced in the relocation:<br />

text, data, bss, or EXT for external. The fifth field is the size of relocation: byte, word<br />

(2 bytes), or long (4 bytes). The last field, if present, will indicate that the relocation is<br />

relative.<br />

If short form relocation is present, the format consist of three fields. The first field is<br />

the relocation command in hexadecimal. The second field contains the name of the<br />

segment referenced: text or data. The last field indicates the size of relocation: word<br />

or long.<br />

B-71

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!