Doxygen Documentation |
||||||
Package: |
ELF |
|||||
Version: |
V1-0-1 |
Marked: |
(not marked) |
|||
Constituent: |
elf_show |
Tag: |
linux-gcc |
#include "ELF/elf.h"
Functions | |
void | ELF_swapEhdr (const Elf32_Ehdr *inEhdr, Elf32_Ehdr *outEhdr) |
Byte swap an ELF file header. | |
void | ELF_swapShdr (const Elf32_Shdr *inShdr, Elf32_Shdr *outShdr, int numEntries) |
Byte swap an ELF file section header table. | |
void | ELF_swapSym (const Elf32_Sym *inSym, Elf32_Sym *outSym, int numEntries) |
Byte swap an ELF file symbol table. | |
void | ELF_swapRela (const Elf32_Rela *inRela, Elf32_Rela *outRela, int numEntries) |
Byte swap an ELF relocation table. |
These functions byte swap ELF file structures for portability between big-endian PPC machines and little-endian x86 machines. The macros call the appropriate swap function when running on a littile endian machine, but are memory copies on a big endian machine.