Revision 5fafdf24 elf_ops.h

b/elf_ops.h
49 49
    bswap16s(&sym->st_shndx);
50 50
}
51 51

  
52
static struct elf_shdr *glue(find_section, SZ)(struct elf_shdr *shdr_table, 
52
static struct elf_shdr *glue(find_section, SZ)(struct elf_shdr *shdr_table,
53 53
                                               int n, int type)
54 54
{
55 55
    int i;
......
71 71
    int nsyms, i;
72 72
    char *str = NULL;
73 73

  
74
    shdr_table = load_at(fd, ehdr->e_shoff, 
74
    shdr_table = load_at(fd, ehdr->e_shoff,
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