| @@ -324,7 +324,7 @@ static const DWORD pe_sec_flags[] = { · 323 unmodified lines |
| 324 | 324 | struct section_info { |
| 325 | 325 | int cls; |
| 326 | 326 | char name[32]; |
| 327 | | − DWORD sh_addr; |
| 327 | + ADDR3264 sh_addr; |
| 328 | 328 | DWORD sh_size; |
| 329 | 329 | DWORD pe_flags; |
| 330 | 330 | Section *sec; |
| @@ -451,9 +451,9 @@ static DWORD pe_file_align(struct pe_info *pe, DWORD n) · 120 unmodified lines |
| 451 | 451 | return (n + (pe->file_align - 1)) & ~(pe->file_align - 1); |
| 452 | 452 | } |
| 453 | 453 | |
| 454 | | −static DWORD pe_virtual_align(struct pe_info *pe, DWORD n) |
| 454 | +static ADDR3264 pe_virtual_align(struct pe_info *pe, ADDR3264 n) |
| 455 | 455 | { |
| 456 | | − return (n + (pe->section_align - 1)) & ~(pe->section_align - 1); |
| 456 | + return (n + (pe->section_align - 1)) & ~(ADDR3264)(pe->section_align - 1); |
| 457 | 457 | } |
| 458 | 458 | |
| 459 | 459 | static void pe_align_section(Section *s, int a) |
| @@ -1108,7 +1108,7 @@ static int pe_section_class(Section *s) · 648 unmodified lines |
| 1108 | 1108 | static int pe_assign_addresses (struct pe_info *pe) |
| 1109 | 1109 | { |
| 1110 | 1110 | int i, k, n, c, nbs; |
| 1111 | | − DWORD addr; |
| 1111 | + ADDR3264 addr; |
| 1112 | 1112 | int *sec_order, *sec_cls; |
| 1113 | 1113 | struct section_info *si; |
| 1114 | 1114 | Section *s; |
| @@ -1198,7 +1198,7 @@ add_section: · 83 unmodified lines |
| 1198 | 1198 | Section *s = s1->sections[sec_order[i]]; |
| 1199 | 1199 | int type = s->sh_type; |
| 1200 | 1200 | int flags = s->sh_flags; |
| 1201 | | − printf("section %-16s %-10s %08x %04x %s,%s,%s\n", |
| 1201 | + printf("section %-16s %-10s %p %04x %s,%s,%s\n", |
| 1202 | 1202 | s->name, |
| 1203 | 1203 | type == SHT_PROGBITS ? "progbits" : |
| 1204 | 1204 | type == SHT_INIT_ARRAY ? "initarr" : |
| @@ -1207,7 +1207,7 @@ add_section: · 2 unmodified lines |
| 1207 | 1207 | type == SHT_SYMTAB ? "symtab" : |
| 1208 | 1208 | type == SHT_STRTAB ? "strtab" : |
| 1209 | 1209 | type == SHT_RELX ? "rel" : "???", |
| 1210 | | − (unsigned)s->sh_addr, |
| 1210 | + s->sh_addr, |
| 1211 | 1211 | (unsigned)s->data_offset, |
| 1212 | 1212 | flags & SHF_ALLOC ? "alloc" : "", |
| 1213 | 1213 | flags & SHF_WRITE ? "write" : "", |
| @@ -1280,7 +1280,7 @@ static int pe_check_symbols(struct pe_info *pe) · 66 unmodified lines |
| 1280 | 1280 | is = pe_add_import(pe, imp_sym); |
| 1281 | 1281 | |
| 1282 | 1282 | if (type == STT_FUNC) { |
| 1283 | | − unsigned long offset = is->thk_offset; |
| 1283 | + unsigned offset = is->thk_offset; |
| 1284 | 1284 | if (offset) { |
| 1285 | 1285 | /* got aliased symbol, like stricmp and _stricmp */ |
| 1286 | 1286 | } else { |