diff options
| author | bellard <bellard> | 2004-11-07 15:43:15 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2004-11-07 15:43:15 +0000 |
| commit | 6bbfb8f6100b99fc46067fe938e898a3e4c0b9c0 (patch) | |
| tree | e658f2dc456b280b301c3108e08ccb8ceec68ce9 /tccelf.c | |
| parent | 1d0e5e8b01f24b2416d5ad1ee98544a4b1ba8dab (diff) | |
| download | tinycc-6bbfb8f6100b99fc46067fe938e898a3e4c0b9c0.tar.gz tinycc-6bbfb8f6100b99fc46067fe938e898a3e4c0b9c0.tar.bz2 | |
removed warnings
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -448,9 +448,12 @@ static void relocate_section(TCCState *s1, Section *s) Section *sr; Elf32_Rel *rel, *rel_end, *qrel; Elf32_Sym *sym; - int type, sym_index, esym_index; + int type, sym_index; unsigned char *ptr; unsigned long val, addr; +#if defined(TCC_TARGET_I386) + int esym_index; +#endif sr = s->reloc; rel_end = (Elf32_Rel *)(sr->data + sr->data_offset); @@ -662,10 +665,12 @@ static void put32(unsigned char *p, uint32_t val) p[3] = val >> 24; } +#if defined(TCC_TARGET_I386) || defined(TCC_TARGET_ARM) static uint32_t get32(unsigned char *p) { return p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); } +#endif static void build_got(TCCState *s1) { |
