The gdump Utility Program

The gdump Utility Program formats and prints information about a BSD or ELF object file, object library file, or executable file, including:

Usage

To use gdump, enter:

gdump [options] filename

where

options gdump options, listed below.

filename BSD or ELF file.

BSD File Options

Options when using gdump with BSD format files include:

-help Display information about all options.

-c Print section contents.

-h Print file header.

-r Print relocation entries.

-s Print symbol table.

ELF File Options

Options when using gdump with ELF format files include:

-asm Print text sections as pure assembly language (see also -ytext).

-dwarf Print DWARF information only.

-full Dump everything except section contents (see -ysec).

-help Display information about all options.

-load Print ELF header summary.

-map Print section summary.

-N Only print information as indicated by -y options.

-raw If -ysec, dump text sections in hexadecimal format, not disassembly.

-sx/nx Attempt/do not attempt shorter C++ demangling.

-sym Use symbol names, not numbers, in relocation output.

-v1 Print DWARF version 1. This is the default.

-v2 Print DWARF version 2. This version is not well supported.

-verify_checksum

Indicates to gdump that all non-empty, allocated sections have a 4 byte checksum generated by the GHS linker. The content of each section is compared against the existing checksum and if they do not match, both will be printed.

-print_checksum

Prints the checksum for each appropriate section. If -verify_checksum is also specified, checksums are assumed to exist and -print_checksum prints them for those sections where the checksum is found to be correct. If the -verify_checksum option is not specified, checksums are assumed non-existent in the section and calculates them, using all bytes in the section.

-yd/-nd

Print/do not print DWARF debug information.

-ydynamic/-ndynamic

Print/do not print dynamic linkage information.

-yg/-ng

Print/do not print global offset table.

-yh/-nh

Print/do not print ELF header information.

-yl/-nl

Print/do not print DWARF line number information.

-yr/nr

Print/do not print relocation information.

-yp/-np

Print/do not print procedure linkage table.

-ys/-ns

Print/do not print symbol table information.

-ysec/-nsec

Print/do not print section contents.

-ysh/-nsh

Print/do not print section header information.

-ystr/-nstr

Print/do not print string table information.

-yr/-nr

Print/do not print relocation information.

-ytext

Print contents of text sections only.


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.