| @@ -506,14 +506,14 @@ static uplong add_got_table(TCCState *s1, uplong val) · 505 unmodified lines |
| 506 | 506 | } |
| 507 | 507 | #elif defined TCC_TARGET_ARM |
| 508 | 508 | #define JMP_TABLE_ENTRY_SIZE 8 |
| 509 | | −static int add_jmp_table(TCCState *s1, int val) |
| 509 | +static uplong add_jmp_table(TCCState *s1, int val) |
| 510 | 510 | { |
| 511 | 511 | uint32_t *p = (uint32_t *)(s1->runtime_plt_and_got + s1->runtime_plt_and_got_offset); |
| 512 | 512 | s1->runtime_plt_and_got_offset += JMP_TABLE_ENTRY_SIZE; |
| 513 | 513 | /* ldr pc, [pc, #-4] */ |
| 514 | 514 | p[0] = 0xE51FF004; |
| 515 | 515 | p[1] = val; |
| 516 | | − return (int)p; |
| 516 | + return (uplong)p; |
| 517 | 517 | } |
| 518 | 518 | #endif |
| 519 | 519 | #endif |
| @@ -666,8 +666,8 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s) · 146 unmodified lines |
| 666 | 666 | *(int*)ptr ^= 0xE12FFF10 ^ 0xE1A0F000; /* BX Rm -> MOV PC, Rm */ |
| 667 | 667 | break; |
| 668 | 668 | default: |
| 669 | | − fprintf(stderr,"FIXME: handle reloc type %x at %lx [%.8x] to %lx\n", |
| 670 | | − type,addr,(unsigned int)(long)ptr,val); |
| 669 | + fprintf(stderr,"FIXME: handle reloc type %x at %x [%.8x] to %x\n", |
| 670 | + type, (unsigned)addr, (unsigned)(uplong)ptr, (unsigned)val); |
| 671 | 671 | break; |
| 672 | 672 | #elif defined(TCC_TARGET_C67) |
| 673 | 673 | case R_C60_32: |
| @@ -692,8 +692,8 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s) · 18 unmodified lines |
| 692 | 692 | case R_C60HI16: |
| 693 | 693 | break; |
| 694 | 694 | default: |
| 695 | | − fprintf(stderr,"FIXME: handle reloc type %x at %lx [%.8x] to %lx\n", |
| 696 | | − type,addr,(unsigned int)(long)ptr, val); |
| 695 | + fprintf(stderr,"FIXME: handle reloc type %x at %x [%.8x] to %x\n", |
| 696 | + type, (unsigned)addr, (unsigned)(uplong)ptr, (unsigned)val); |
| 697 | 697 | break; |
| 698 | 698 | #elif defined(TCC_TARGET_X86_64) |
| 699 | 699 | case R_X86_64_64: |