Revision 3b46e624 elf_ops.h

b/elf_ops.h
75 75
                         sizeof(struct elf_shdr) * ehdr->e_shnum);
76 76
    if (!shdr_table)
77 77
        return -1;
78
   
78

  
79 79
    if (must_swab) {
80 80
        for (i = 0; i < ehdr->e_shnum; i++) {
81 81
            glue(bswap_shdr, SZ)(shdr_table + i);
82 82
        }
83 83
    }
84
       
84

  
85 85
    symtab = glue(find_section, SZ)(shdr_table, ehdr->e_shnum, SHT_SYMTAB);
86 86
    if (!symtab)
87 87
        goto fail;
......
176 176
            glue(bswap_phdr, SZ)(ph);
177 177
        }
178 178
    }
179
   
179

  
180 180
    total_size = 0;
181 181
    for(i = 0; i < ehdr.e_phnum; i++) {
182 182
        ph = &phdr[i];

Also available in: Unified diff