GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> ELF / V1-1-3 > elf_show / rad750


Interface   Data Structures   File List   Data Fields   Globals  

ELF_show.h File Reference

ELF dump library. More...


Functions

int ELF_show (const void *file, int size)
 Show the contents of an ELF file.


Detailed Description

ELF dump library.

The function ELF_show() prints the contents of a 32-bit PPC ELF file. All section header information is displayed for every section contained in the file. The symbol table and relocation table sections are shown in detail, giving the contents of each table entry.

This library was specifically intended for use with relocatable ELF files (ET_REL) for PowerPC machines (EM_PPC) in the 32-bit big-endian format (ELFCLASS32 and ELFDATA2MSB). It will work with some other ELF format files, but usually the displayed information is much more limited.


Function Documentation

int ELF_show ( const void *  file,
int  size 
)

Show the contents of an ELF file.

The contents of the ELF file are printed to standard out.

Parameters:
file A pointer to an ELF file memory image.
size The size in bytes of the ELF memory image.
Return values:
0 Success.
-1 Failure.

References _ELF_Dump_Info::buf, _ELF_Dump_Info::ehdr, ELF_showSection(), ELF_swapEhdr(), ELF_swapShdr(), _ELF_Dump_Info::shtab, and _ELF_Dump_Info::strtab.


Generated on Wed Nov 21 22:23:16 2012 by  doxygen 1.5.8