comparison dynload/dynload_syms_elf.c @ 171:011b5e3a8548

- compatibility for older platforms - use ANSI comments
author cslag
date Tue, 10 Jan 2017 12:01:59 +0100
parents 3e629dc19168
children bff2b940ea39
comparison
equal deleted inserted replaced
170:ee0de14d5da0 171:011b5e3a8548
158 pSyms->pSymTab = (Elf_Sym*)pSectionContent; 158 pSyms->pSymTab = (Elf_Sym*)pSectionContent;
159 pSyms->nSymbols = pSection->sh_size / pSection->sh_entsize; 159 pSyms->nSymbols = pSection->sh_size / pSection->sh_entsize;
160 } 160 }
161 break; 161 break;
162 case SHT_STRTAB: 162 case SHT_STRTAB:
163 // Do not trust pSyms->pElf_Ehdr->e_shstrndx! 163 /* Do not trust pSyms->pElf_Ehdr->e_shstrndx! */
164 if (!pSyms->pStrTab) { 164 if (!pSyms->pStrTab) {
165 pSyms->pStrTab = (const char*)pSectionContent; 165 pSyms->pStrTab = (const char*)pSectionContent;
166 pSyms->strTabSize = pSection->sh_size; 166 pSyms->strTabSize = pSection->sh_size;
167 } 167 }
168 break; 168 break;