Revision 82790064 elf_ops.h

b/elf_ops.h
159 159
        goto fail;
160 160

  
161 161
    if (pentry)
162
   	*pentry = (uint64_t)ehdr.e_entry;
162
   	*pentry = (uint64_t)(elf_sword)ehdr.e_entry;
163 163

  
164 164
    glue(load_symbols, SZ)(&ehdr, fd, must_swab);
165 165

  
......
206 206
    }
207 207
    qemu_free(phdr);
208 208
    if (lowaddr)
209
        *lowaddr = (uint64_t)low;
209
        *lowaddr = (uint64_t)(elf_sword)low;
210 210
    if (highaddr)
211
        *highaddr = (uint64_t)high;
211
        *highaddr = (uint64_t)(elf_sword)high;
212 212
    return total_size;
213 213
 fail:
214 214
    qemu_free(data);

Also available in: Unified diff