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