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

Function IsStrtabShdr

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

Source from the content-addressed store, hash-verified

266}
267
268STATIC
269BOOLEAN
270IsStrtabShdr (
271 Elf_Shdr *Shdr
272 )
273{
274 Elf_Shdr *Namedr = GetShdrByIndex(mEhdr->e_shstrndx);
275
276 return (BOOLEAN) (strcmp((CHAR8*)mEhdr + Namedr->sh_offset + Shdr->sh_name, ELF_STRTAB_SECTION_NAME) == 0);
277}
278
279STATIC
280Elf_Shdr *

Callers 1

FindStrtabShdrFunction · 0.70

Calls 2

GetShdrByIndexFunction · 0.70
strcmpFunction · 0.50

Tested by

no test coverage detected