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

Go to the source code of this file.

Data Structures

struct  Elf64_Ehdr
 
struct  Elf64_Shdr
 
struct  Elf64_Phdr
 
struct  Elf64_Dyn
 
struct  Elf64_Rel
 
struct  Elf64_Rela
 
struct  Elf64_Move
 
struct  Elf64_Cap
 
struct  Elf64_Sym
 
struct  Elf64_Verdef
 
struct  Elf64_Verdaux
 
struct  Elf64_Verneed
 
struct  Elf64_Vernaux
 
struct  Elf64_Syminfo
 

Macros

#define ELF64_R_SYM(info)   ((UINT32) RShiftU64 ((info), 32))
 
#define ELF64_R_TYPE(info)   ((info) & 0xffffffffL)
 
#define ELF64_R_INFO(sym, type)   (((sym) << 32) + ((type) & 0xffffffffL))
 
#define ELF64_R_TYPE_DATA(info)   (((Elf64_Xword)(info)<<32)>>40)
 
#define ELF64_R_TYPE_ID(info)   (((Elf64_Xword)(info)<<56)>>56)
 
#define ELF64_R_TYPE_INFO(data, type)    (((Elf64_Xword)(data)<<8)+(Elf64_Xword)(type))
 
#define ELF64_M_SYM(info)   ((info)>>8)
 
#define ELF64_M_SIZE(info)   ((unsigned char)(info))
 
#define ELF64_M_INFO(sym, size)   (((sym)<<8)+(unsigned char)(size))
 
#define ELF64_ST_BIND(info)   ((info) >> 4)
 
#define ELF64_ST_TYPE(info)   ((info) & 0xf)
 
#define ELF64_ST_INFO(bind, type)   (((bind) << 4) + ((type) & 0xf))
 
#define ELF64_ST_VISIBILITY(oth)   ((oth) & 0x3)
 

Typedefs

typedef UINT64 Elf64_Addr
 
typedef UINT16 Elf64_Half
 
typedef UINT64 Elf64_Off
 
typedef INT32 Elf64_Sword
 
typedef INT64 Elf64_Sxword
 
typedef UINT32 Elf64_Word
 
typedef UINT64 Elf64_Lword
 
typedef UINT64 Elf64_Xword
 
typedef Elf64_Word Elf64_Hashelt
 
typedef Elf64_Xword Elf64_Size
 
typedef Elf64_Sxword Elf64_Ssize
 
typedef Elf_Note Elf64_Nhdr
 
typedef Elf64_Half Elf64_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 Elf64.h.

Macro Definition Documentation

◆ ELF64_M_INFO

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

Definition at line 178 of file Elf64.h.

◆ ELF64_M_SIZE

#define ELF64_M_SIZE (   info)    ((unsigned char)(info))

Definition at line 177 of file Elf64.h.

◆ ELF64_M_SYM

#define ELF64_M_SYM (   info)    ((info)>>8)

Definition at line 176 of file Elf64.h.

◆ ELF64_R_INFO

#define ELF64_R_INFO (   sym,
  type 
)    (((sym) << 32) + ((type) & 0xffffffffL))

Definition at line 153 of file Elf64.h.

◆ ELF64_R_SYM

#define ELF64_R_SYM (   info)    ((UINT32) RShiftU64 ((info), 32))

Definition at line 149 of file Elf64.h.

◆ ELF64_R_TYPE

#define ELF64_R_TYPE (   info)    ((info) & 0xffffffffL)

Definition at line 150 of file Elf64.h.

◆ ELF64_R_TYPE_DATA

#define ELF64_R_TYPE_DATA (   info)    (((Elf64_Xword)(info)<<32)>>40)

Definition at line 155 of file Elf64.h.

◆ ELF64_R_TYPE_ID

#define ELF64_R_TYPE_ID (   info)    (((Elf64_Xword)(info)<<56)>>56)

Definition at line 156 of file Elf64.h.

◆ ELF64_R_TYPE_INFO

#define ELF64_R_TYPE_INFO (   data,
  type 
)     (((Elf64_Xword)(data)<<8)+(Elf64_Xword)(type))

Definition at line 157 of file Elf64.h.

◆ ELF64_ST_BIND

#define ELF64_ST_BIND (   info)    ((info) >> 4)

Definition at line 205 of file Elf64.h.

◆ ELF64_ST_INFO

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

Definition at line 209 of file Elf64.h.

◆ ELF64_ST_TYPE

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

Definition at line 206 of file Elf64.h.

◆ ELF64_ST_VISIBILITY

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

Definition at line 212 of file Elf64.h.

Typedef Documentation

◆ Elf64_Addr

typedef UINT64 Elf64_Addr

Definition at line 43 of file Elf64.h.

◆ Elf64_Half

typedef UINT16 Elf64_Half

Definition at line 44 of file Elf64.h.

◆ Elf64_Hashelt

typedef Elf64_Word Elf64_Hashelt

Definition at line 59 of file Elf64.h.

◆ Elf64_Lword

typedef UINT64 Elf64_Lword

Definition at line 49 of file Elf64.h.

◆ Elf64_Nhdr

Definition at line 163 of file Elf64.h.

◆ Elf64_Off

typedef UINT64 Elf64_Off

Definition at line 45 of file Elf64.h.

◆ Elf64_Size

typedef Elf64_Xword Elf64_Size

Definition at line 62 of file Elf64.h.

◆ Elf64_Ssize

typedef Elf64_Sxword Elf64_Ssize

Definition at line 63 of file Elf64.h.

◆ Elf64_Sword

typedef INT32 Elf64_Sword

Definition at line 46 of file Elf64.h.

◆ Elf64_Sxword

typedef INT64 Elf64_Sxword

Definition at line 47 of file Elf64.h.

◆ Elf64_Versym

typedef Elf64_Half Elf64_Versym

Definition at line 246 of file Elf64.h.

◆ Elf64_Word

typedef UINT32 Elf64_Word

Definition at line 48 of file Elf64.h.

◆ Elf64_Xword

typedef UINT64 Elf64_Xword

Definition at line 50 of file Elf64.h.