FireBirdLib - Topfield TMS PVR TAP Programming Library
ELFGetSectionOffset.c
Go to the documentation of this file.
1
#include "
ELF.h
"
2
#include "
FBLib_elf.h
"
3
4
bool
ELFGetSectionOffset
(dword SectionIndex, dword *SectionOffset, dword *SectionSize)
5
{
6
TRACEENTER
();
7
8
if
(SectionIndex >=
ELFHeader
->
e_shnum
)
9
{
10
TRACEEXIT
();
11
return
FALSE;
12
}
13
14
if
(SectionOffset) *SectionOffset =
SectionHeaders
[SectionIndex].
sh_offset
;
15
if
(SectionSize) *SectionSize =
SectionHeaders
[SectionIndex].
sh_size
;
16
17
TRACEEXIT
();
18
return
TRUE;
19
}
ELFGetSectionOffset
bool ELFGetSectionOffset(dword SectionIndex, dword *SectionOffset, dword *SectionSize)
Definition:
ELFGetSectionOffset.c:4
SectionHeaders
Elf32_Shdr * SectionHeaders
Definition:
ELFOpenFile.c:7
ELFHeader
Elf32_Ehdr * ELFHeader
Definition:
ELFOpenFile.c:6
ELF.h
FBLib_elf.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
Elf32_Ehdr::e_shnum
Elf32_Half e_shnum
Definition:
ELF.h:44
Elf32_Shdr::sh_offset
Elf32_Off sh_offset
Definition:
ELF.h:54
Elf32_Shdr::sh_size
Elf32_Word sh_size
Definition:
ELF.h:55
elf
ELFGetSectionOffset.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3