MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / GetShdrByIndex

Function GetShdrByIndex

BaseTools/Source/C/GenFw/Elf64Convert.c:201–213  ·  view source on GitHub ↗

Header by Index functions

Source from the content-addressed store, hash-verified

199// Header by Index functions
200//
201STATIC
202Elf_Shdr*
203GetShdrByIndex (
204 UINT32 Num
205 )
206{
207 if (Num >= mEhdr->e_shnum) {
208 Error (NULL, 0, 3000, "Invalid", "GetShdrByIndex: Index %u is too high.", Num);
209 exit(EXIT_FAILURE);
210 }
211
212 return (Elf_Shdr*)((UINT8*)mShdrBase + Num * mEhdr->e_shentsize);
213}
214
215STATIC
216UINT32

Callers 7

IsHiiRsrcShdrFunction · 0.70
IsStrtabShdrFunction · 0.70
FindStrtabShdrFunction · 0.70
ScanSections64Function · 0.70
WriteSections64Function · 0.70
WriteRelocations64Function · 0.70

Calls 2

exitFunction · 0.85
ErrorFunction · 0.50

Tested by

no test coverage detected