Loading [MathJax]/extensions/tex2jax.js
CS350 COS
COS
All Data Structures Files Functions Variables Typedefs Macros
elf32.h File Reference
#include <sys/elf_common.h>
Include dependency graph for elf32.h:

Go to the source code of this file.

Data Structures

struct  Elf32_Ehdr
 
struct  Elf32_Shdr
 
struct  Elf32_Phdr
 
struct  Elf32_Dyn
 
struct  Elf32_Rel
 
struct  Elf32_Rela
 
struct  Elf32_Move
 
struct  Elf32_Cap
 
struct  Elf32_Sym
 
struct  Elf32_Verdef
 
struct  Elf32_Verdaux
 
struct  Elf32_Verneed
 
struct  Elf32_Vernaux
 
struct  Elf32_Syminfo
 
union  Elf32_Dyn.d_un
 
union  Elf32_Cap.c_un
 

Macros

#define ELF32_R_SYM(info)   ((info) >> 8)
 
#define ELF32_R_TYPE(info)   ((unsigned char)(info))
 
#define ELF32_R_INFO(sym, type)   (((sym) << 8) + (unsigned char)(type))
 
#define ELF32_M_SYM(info)   ((info)>>8)
 
#define ELF32_M_SIZE(info)   ((unsigned char)(info))
 
#define ELF32_M_INFO(sym, size)   (((sym)<<8)+(unsigned char)(size))
 
#define ELF32_ST_BIND(info)   ((info) >> 4)
 
#define ELF32_ST_TYPE(info)   ((info) & 0xf)
 
#define ELF32_ST_INFO(bind, type)   (((bind) << 4) + ((type) & 0xf))
 
#define ELF32_ST_VISIBILITY(oth)   ((oth) & 0x3)
 

Typedefs

typedef uint32_t Elf32_Addr
 
typedef uint16_t Elf32_Half
 
typedef uint32_t Elf32_Off
 
typedef int32_t Elf32_Sword
 
typedef uint32_t Elf32_Word
 
typedef uint64_t Elf32_Lword
 
typedef Elf32_Word Elf32_Hashelt
 
typedef Elf32_Word Elf32_Size
 
typedef Elf32_Sword Elf32_Ssize
 
typedef Elf_Note Elf32_Nhdr
 
typedef Elf32_Half Elf32_Versym
 

Data Structure Documentation

◆ Elf32_Ehdr

struct Elf32_Ehdr

Definition at line 55 of file elf32.h.

Collaboration diagram for Elf32_Ehdr:
[legend]
Data Fields
Elf32_Half e_ehsize
Elf32_Addr e_entry
Elf32_Word e_flags
unsigned char e_ident[EI_NIDENT]
Elf32_Half e_machine
Elf32_Half e_phentsize
Elf32_Half e_phnum
Elf32_Off e_phoff
Elf32_Half e_shentsize
Elf32_Half e_shnum
Elf32_Off e_shoff
Elf32_Half e_shstrndx
Elf32_Half e_type
Elf32_Word e_version

◆ Elf32_Shdr

struct Elf32_Shdr

Definition at line 76 of file elf32.h.

Collaboration diagram for Elf32_Shdr:
[legend]
Data Fields
Elf32_Addr sh_addr
Elf32_Word sh_addralign
Elf32_Word sh_entsize
Elf32_Word sh_flags
Elf32_Word sh_info
Elf32_Word sh_link
Elf32_Word sh_name
Elf32_Off sh_offset
Elf32_Word sh_size
Elf32_Word sh_type

◆ Elf32_Phdr

struct Elf32_Phdr

Definition at line 94 of file elf32.h.

Collaboration diagram for Elf32_Phdr:
[legend]
Data Fields
Elf32_Word p_align
Elf32_Word p_filesz
Elf32_Word p_flags
Elf32_Word p_memsz
Elf32_Off p_offset
Elf32_Addr p_paddr
Elf32_Word p_type
Elf32_Addr p_vaddr

◆ Elf32_Dyn

struct Elf32_Dyn

Definition at line 109 of file elf32.h.

Collaboration diagram for Elf32_Dyn:
[legend]
Data Fields
Elf32_Sword d_tag
union Elf32_Dyn.d_un d_un

◆ Elf32_Rel

struct Elf32_Rel

Definition at line 122 of file elf32.h.

Collaboration diagram for Elf32_Rel:
[legend]
Data Fields
Elf32_Word r_info
Elf32_Addr r_offset

◆ Elf32_Rela

struct Elf32_Rela

Definition at line 128 of file elf32.h.

Collaboration diagram for Elf32_Rela:
[legend]
Data Fields
Elf32_Sword r_addend
Elf32_Word r_info
Elf32_Addr r_offset

◆ Elf32_Move

struct Elf32_Move

Definition at line 149 of file elf32.h.

Collaboration diagram for Elf32_Move:
[legend]
Data Fields
Elf32_Word m_info
Elf32_Word m_poffset
Elf32_Half m_repeat
Elf32_Half m_stride
Elf32_Lword m_value

◆ Elf32_Cap

struct Elf32_Cap

Definition at line 171 of file elf32.h.

Collaboration diagram for Elf32_Cap:
[legend]
Data Fields
Elf32_Word c_tag
union Elf32_Cap.c_un c_un

◆ Elf32_Sym

struct Elf32_Sym

Definition at line 183 of file elf32.h.

Collaboration diagram for Elf32_Sym:
[legend]
Data Fields
unsigned char st_info
Elf32_Word st_name
unsigned char st_other
Elf32_Half st_shndx
Elf32_Word st_size
Elf32_Addr st_value

◆ Elf32_Verdef

struct Elf32_Verdef

Definition at line 203 of file elf32.h.

Collaboration diagram for Elf32_Verdef:
[legend]
Data Fields
Elf32_Word vd_aux
Elf32_Half vd_cnt
Elf32_Half vd_flags
Elf32_Word vd_hash
Elf32_Half vd_ndx
Elf32_Word vd_next
Elf32_Half vd_version

◆ Elf32_Verdaux

struct Elf32_Verdaux

Definition at line 214 of file elf32.h.

Collaboration diagram for Elf32_Verdaux:
[legend]
Data Fields
Elf32_Word vda_name
Elf32_Word vda_next

◆ Elf32_Verneed

struct Elf32_Verneed

Definition at line 220 of file elf32.h.

Collaboration diagram for Elf32_Verneed:
[legend]
Data Fields
Elf32_Word vn_aux
Elf32_Half vn_cnt
Elf32_Word vn_file
Elf32_Word vn_next
Elf32_Half vn_version

◆ Elf32_Vernaux

struct Elf32_Vernaux

Definition at line 229 of file elf32.h.

Collaboration diagram for Elf32_Vernaux:
[legend]
Data Fields
Elf32_Half vna_flags
Elf32_Word vna_hash
Elf32_Word vna_name
Elf32_Word vna_next
Elf32_Half vna_other

◆ Elf32_Syminfo

struct Elf32_Syminfo

Definition at line 240 of file elf32.h.

Collaboration diagram for Elf32_Syminfo:
[legend]
Data Fields
Elf32_Half si_boundto
Elf32_Half si_flags

◆ Elf32_Dyn.d_un

union Elf32_Dyn.d_un

Definition at line 111 of file elf32.h.

Data Fields
Elf32_Addr d_ptr
Elf32_Word d_val

◆ Elf32_Cap.c_un

union Elf32_Cap.c_un

Definition at line 173 of file elf32.h.

Data Fields
Elf32_Addr c_ptr
Elf32_Word c_val

Macro Definition Documentation

◆ ELF32_M_INFO

#define ELF32_M_INFO (   sym,
  size 
)    (((sym)<<8)+(unsigned char)(size))

Definition at line 166 of file elf32.h.

◆ ELF32_M_SIZE

#define ELF32_M_SIZE (   info)    ((unsigned char)(info))

Definition at line 165 of file elf32.h.

◆ ELF32_M_SYM

#define ELF32_M_SYM (   info)    ((info)>>8)

Definition at line 164 of file elf32.h.

◆ ELF32_R_INFO

#define ELF32_R_INFO (   sym,
  type 
)    (((sym) << 8) + (unsigned char)(type))

Definition at line 139 of file elf32.h.

◆ ELF32_R_SYM

#define ELF32_R_SYM (   info)    ((info) >> 8)

Definition at line 135 of file elf32.h.

◆ ELF32_R_TYPE

#define ELF32_R_TYPE (   info)    ((unsigned char)(info))

Definition at line 136 of file elf32.h.

◆ ELF32_ST_BIND

#define ELF32_ST_BIND (   info)    ((info) >> 4)

Definition at line 193 of file elf32.h.

◆ ELF32_ST_INFO

#define ELF32_ST_INFO (   bind,
  type 
)    (((bind) << 4) + ((type) & 0xf))

Definition at line 197 of file elf32.h.

◆ ELF32_ST_TYPE

#define ELF32_ST_TYPE (   info)    ((info) & 0xf)

Definition at line 194 of file elf32.h.

◆ ELF32_ST_VISIBILITY

#define ELF32_ST_VISIBILITY (   oth)    ((oth) & 0x3)

Definition at line 200 of file elf32.h.

Typedef Documentation

◆ Elf32_Addr

Definition at line 38 of file elf32.h.

◆ Elf32_Half

Definition at line 39 of file elf32.h.

◆ Elf32_Hashelt

Definition at line 45 of file elf32.h.

◆ Elf32_Lword

Definition at line 43 of file elf32.h.

◆ Elf32_Nhdr

Definition at line 144 of file elf32.h.

◆ Elf32_Off

Definition at line 40 of file elf32.h.

◆ Elf32_Size

Definition at line 48 of file elf32.h.

◆ Elf32_Ssize

Definition at line 49 of file elf32.h.

◆ Elf32_Sword

Definition at line 41 of file elf32.h.

◆ Elf32_Versym

Definition at line 238 of file elf32.h.

◆ Elf32_Word

Definition at line 42 of file elf32.h.