TianoCore EDK2 master
Loading...
Searching...
No Matches
Elf32.h File Reference

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
 

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 Elf32_Addr
 
typedef UINT16 Elf32_Half
 
typedef UINT32 Elf32_Off
 
typedef INT32 Elf32_Sword
 
typedef UINT32 Elf32_Word
 
typedef UINT64 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
 

Detailed Description

Ported ELF include files from FreeBSD

Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Elf32.h.

Macro Definition Documentation

◆ ELF32_M_INFO

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

Definition at line 172 of file Elf32.h.

◆ ELF32_M_SIZE

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

Definition at line 171 of file Elf32.h.

◆ ELF32_M_SYM

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

Definition at line 170 of file Elf32.h.

◆ ELF32_R_INFO

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

Definition at line 145 of file Elf32.h.

◆ ELF32_R_SYM

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

Definition at line 141 of file Elf32.h.

◆ ELF32_R_TYPE

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

Definition at line 142 of file Elf32.h.

◆ ELF32_ST_BIND

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

Definition at line 199 of file Elf32.h.

◆ ELF32_ST_INFO

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

Definition at line 203 of file Elf32.h.

◆ ELF32_ST_TYPE

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

Definition at line 200 of file Elf32.h.

◆ ELF32_ST_VISIBILITY

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

Definition at line 206 of file Elf32.h.

Typedef Documentation

◆ Elf32_Addr

typedef UINT32 Elf32_Addr

Definition at line 44 of file Elf32.h.

◆ Elf32_Half

typedef UINT16 Elf32_Half

Definition at line 45 of file Elf32.h.

◆ Elf32_Hashelt

typedef Elf32_Word Elf32_Hashelt

Definition at line 51 of file Elf32.h.

◆ Elf32_Lword

typedef UINT64 Elf32_Lword

Definition at line 49 of file Elf32.h.

◆ Elf32_Nhdr

Definition at line 150 of file Elf32.h.

◆ Elf32_Off

typedef UINT32 Elf32_Off

Definition at line 46 of file Elf32.h.

◆ Elf32_Size

typedef Elf32_Word Elf32_Size

Definition at line 54 of file Elf32.h.

◆ Elf32_Ssize

typedef Elf32_Sword Elf32_Ssize

Definition at line 55 of file Elf32.h.

◆ Elf32_Sword

typedef INT32 Elf32_Sword

Definition at line 47 of file Elf32.h.

◆ Elf32_Versym

typedef Elf32_Half Elf32_Versym

Definition at line 240 of file Elf32.h.

◆ Elf32_Word

typedef UINT32 Elf32_Word

Definition at line 48 of file Elf32.h.