Rev 16 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16 | Rev 38 | ||
---|---|---|---|
Line 324... | Line 324... | ||
324 | size_t table_index; |
324 | size_t table_index; |
325 | char *shstrtab; // section header strings table |
325 | char *shstrtab; // section header strings table |
326 | char *name; |
326 | char *name; |
327 | 327 | ||
328 | shdr_shstrtab = (elf_section_header_t *) ((uint8_t *) elf + ELF_GET_NUMERIC (elf, elf, section_header_table_offset) + (size_t) ELF_GET_NUMERIC (elf, elf, section_header_item_size) * ELF_GET_NUMERIC (elf, elf, section_header_names_idx)); // quick access to section header for the section that contains the section names |
328 | shdr_shstrtab = (elf_section_header_t *) ((uint8_t *) elf + ELF_GET_NUMERIC (elf, elf, section_header_table_offset) + (size_t) ELF_GET_NUMERIC (elf, elf, section_header_item_size) * ELF_GET_NUMERIC (elf, elf, section_header_names_idx)); // quick access to section header for the section that contains the section names |
329 | shstrtab = ((uint8_t *) elf + ELF_GET_NUMERIC (elf, shdr_shstrtab, file_offset)); // locate the start of the strings table that contains the section names |
329 | shstrtab = (char *) ((uint8_t *) elf + ELF_GET_NUMERIC (elf, shdr_shstrtab, file_offset)); // locate the start of the strings table that contains the section names |
330 | 330 | ||
331 | // cycle through the sections table |
331 | // cycle through the sections table |
332 | table_count = ELF_GET_NUMERIC (elf, elf, section_header_table_len); |
332 | table_count = ELF_GET_NUMERIC (elf, elf, section_header_table_len); |
333 | for (table_index = 0; table_index < table_count; table_index++) |
333 | for (table_index = 0; table_index < table_count; table_index++) |
334 | { |
334 | { |