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

Function IsStrtabShdr

BaseTools/Source/C/GenFw/Elf32Convert.c:267–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

FindStrtabShdrFunction · 0.70

Calls 2

GetShdrByIndexFunction · 0.70
strcmpFunction · 0.50

Tested by

no test coverage detected