| @@ -97,9 +97,8 @@ static void rebuild_hash(Section *s, unsigned int nb_buckets) · 96 unmodified lines |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /* return the symbol number */ |
| 100 | | −ST_FUNC int put_elf_sym(Section *s, |
| 101 | | − unsigned long value, unsigned long size, |
| 102 | | − int info, int other, int shndx, const char *name) |
| 100 | +ST_FUNC int put_elf_sym(Section *s, uplong value, unsigned long size, |
| 101 | + int info, int other, int shndx, const char *name) |
| 103 | 102 | { |
| 104 | 103 | int name_offset, sym_index; |
| 105 | 104 | int nbuckets, h; |
| @@ -483,7 +482,7 @@ ST_FUNC void relocate_syms(TCCState *s1, int do_resolve) · 377 unmodified lines |
| 483 | 482 | #ifndef TCC_TARGET_PE |
| 484 | 483 | #ifdef TCC_TARGET_X86_64 |
| 485 | 484 | #define JMP_TABLE_ENTRY_SIZE 14 |
| 486 | | −static unsigned long add_jmp_table(TCCState *s1, unsigned long val) |
| 485 | +static uplong add_jmp_table(TCCState *s1, uplong val) |
| 487 | 486 | { |
| 488 | 487 | char *p = s1->runtime_plt_and_got + s1->runtime_plt_and_got_offset; |
| 489 | 488 | s1->runtime_plt_and_got_offset += JMP_TABLE_ENTRY_SIZE; |
| @@ -491,17 +490,16 @@ static unsigned long add_jmp_table(TCCState *s1, unsigned long val) · 1 unmodified line |
| 491 | 490 | p[0] = 0xff; |
| 492 | 491 | p[1] = 0x25; |
| 493 | 492 | *(int *)(p + 2) = 0; |
| 494 | | − *(unsigned long *)(p + 6) = val; |
| 495 | | − return (unsigned long)p; |
| 493 | + *(uplong *)(p + 6) = val; |
| 494 | + return (uplong)p; |
| 496 | 495 | } |
| 497 | 496 | |
| 498 | | −static unsigned long add_got_table(TCCState *s1, unsigned long val) |
| 497 | +static uplong add_got_table(TCCState *s1, uplong val) |
| 499 | 498 | { |
| 500 | | − unsigned long *p =(unsigned long *)(s1->runtime_plt_and_got + |
| 501 | | − s1->runtime_plt_and_got_offset); |
| 502 | | − s1->runtime_plt_and_got_offset += sizeof(void *); |
| 499 | + uplong *p = (uplong *)(s1->runtime_plt_and_got + s1->runtime_plt_and_got_offset); |
| 500 | + s1->runtime_plt_and_got_offset += sizeof(uplong); |
| 503 | 501 | *p = val; |
| 504 | | − return (unsigned long)p; |
| 502 | + return (uplong)p; |
| 505 | 503 | } |
| 506 | 504 | #endif |
| 507 | 505 | #endif |
| @@ -514,7 +512,7 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s) · 6 unmodified lines |
| 514 | 512 | ElfW(Sym) *sym; |
| 515 | 513 | int type, sym_index; |
| 516 | 514 | unsigned char *ptr; |
| 517 | | − unsigned long val, addr; |
| 515 | + uplong val, addr; |
| 518 | 516 | #if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64 |
| 519 | 517 | int esym_index; |
| 520 | 518 | #endif |