enoft Manual

eNOFT Options
eNOFT Manual527507-005
2-27
PROGHDRS
PROGHDRS
This command displays the contents of the program headers and is applicable to
loadfiles and import libraries.
The following shows a listing of the program headers for a loadfile.
enoft> proghdrs
******** ELF Program Headers (File Offset 0x40)
Type Offset VirtAddr File_Size Mem_Size Align RWX
---------------------------------------------------------------------
LOAD 0x00000000 0x70000000 0x00002000 0x00002000 4096 R-X
LOAD 0x00002000 0x08000000 0x00001000 0x00001000 4096 RW-
DYNAMIC 0x00000498 0x70000498 0x00000140 0x00000140 0 R--
TANDEMINFO 0x00000190 0x70000190 0x00000198 0x00000198 0 R--
LIB_IMPORT_CHAR 0x00000328 0x70000328 0x00000170 0x00000170 0 R--
UNWIND 0x00000620 0x70000620 0x000000a8 0x000000a8 0 R-
This command can no longer be called from its "parent" command HEADERS because
that command is not implemented in eNOFT.
RELOC
This command displays the contents of all relocation tables in the object file. This
command in NOFT had included the following sections: .text, .data, and .rdata. The
possible relocation table sections are the sections whose names start ".rela". There are
typically several of these in linkfiles. There are at most two in loadfiles, named .rela.dyn
and .rela.gblzd.
For linkfiles, the relocation tables .rela.x (for respective sections named .x) describe
the relocation sites as offsets relative to the symbols listed in the .symtab symbol
tables.
The relocation table describes the relocation site (the location where the contents of
one place need to be filled in with the address of another) for that section.
For loadfiles, dynamic relocation tables .rela.dyn and .rela.gblzd describe the
relocation sites as offsets relative to the symbols listed in .dynsym and .dynsym.gblzd
dynamic symbol tables, respectively.