GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> ELF / V1-1-3 > elf_show / mv2304
Functions | |
int | ELF_show (const void *file, int size) |
Show the contents of an ELF file. |
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.
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.
file | A pointer to an ELF file memory image. | |
size | The size in bytes of the ELF memory image. |
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.