Back to index

php5  5.3.10
Functions | Variables
elfclass.h File Reference

Go to the source code of this file.

Functions

 if (nbytes<=sizeof(elfhdr)) return 0
 switch (type)

Variables

l = 1
void memcpyelfhdr
 swap = (u.c[sizeof(int32_t) - 1] + 1) != elfhdr.e_ident[EI_DATA]
 type = elf_getu16(swap, elfhdr.e_type)
 return

Function Documentation

if ( nbytes<=  sizeofelfhdr)
switch ( type  )

Definition at line 35 of file elfclass.h.

                     {
#ifdef ELFCORE
       case ET_CORE:
              if (dophn_core(ms, clazz, swap, fd,
                  (off_t)elf_getu(swap, elfhdr.e_phoff),
                  elf_getu16(swap, elfhdr.e_phnum), 
                  (size_t)elf_getu16(swap, elfhdr.e_phentsize),
                  fsize, &flags) == -1)
                     return -1;
              break;
#endif
       case ET_EXEC:
       case ET_DYN:
              if (dophn_exec(ms, clazz, swap, fd,
                  (off_t)elf_getu(swap, elfhdr.e_phoff),
                  elf_getu16(swap, elfhdr.e_phnum), 
                  (size_t)elf_getu16(swap, elfhdr.e_phentsize),
                  fsize, &flags, elf_getu16(swap, elfhdr.e_shnum))
                  == -1)
                     return -1;
              /*FALLTHROUGH*/
       case ET_REL:
              if (doshn(ms, clazz, swap, fd,
                  (off_t)elf_getu(swap, elfhdr.e_shoff),
                  elf_getu16(swap, elfhdr.e_shnum),
                  (size_t)elf_getu16(swap, elfhdr.e_shentsize),
                  &flags,
                  elf_getu16(swap, elfhdr.e_machine)) == -1)
                     return -1;
              break;

       default:
              break;
       }

Here is the caller graph for this function:


Variable Documentation

void memcpy& elfhdr

Definition at line 31 of file elfclass.h.

u l = 1

Definition at line 30 of file elfclass.h.

Definition at line 69 of file elfclass.h.

swap = (u.c[sizeof(int32_t) - 1] + 1) != elfhdr.e_ident[EI_DATA]

Definition at line 32 of file elfclass.h.

$test type = elf_getu16(swap, elfhdr.e_type)

Definition at line 34 of file elfclass.h.