Doxygen Documentation

Main Index

Package Index

Package:

ELF

Version:

V1-0-1

Marked:

(not marked)

Constituent:

elfreloc

Tag:

rad750


Interface   Compound List   File List   Compound Members   File Members  

ELF_private.c File Reference

#include "string.h"
#include "ELF/elf.h"
#include "ELF_private.h"

Functions

Elf32_Shdr * ELF_secFindByName (const char *name, const Elf32_Ehdr *ehdr, const Elf32_Shdr *shdr, const char *strTable)
 Find a section header by name.

int ELF_loadVerify (const void *file)
 Verify ELF object format.


Detailed Description

Function definitions for shared private ELF utilities.

Function Documentation

int ELF_loadVerify const void *  file  ) 
 

Verify ELF object format.

The contents of the file buffer are checked to verify if it contains an ELF file of the proper format for loading.

Parameters:
file A pointer to an ELF file image.
Return values:
0 Success.
-1 The file is not in the proper format for loading.

Elf32_Shdr * ELF_secFindByName const char *  name,
const Elf32_Ehdr *  ehdr,
const Elf32_Shdr *  shdr,
const char *  strTable
 

Find a section header by name.

Searches the section header table at shdr to find a section name match with name.

Parameters:
name The name of the section.
ehdr A pointer to the ELF file header.
shdr A pointer to the ELF file section header table.
strTable A pointer to the section header string table.
Returns:
A pointer to the section header entry, or NULL if the section could not be found.


Generated on Sat Nov 29 14:28:20 2003 by doxygen 1.3.3