Fix set but not used error in arm64-link.c
This commit is contained in:
parent
3811794048
commit
2372639e9d
1 changed files with 4 additions and 5 deletions
|
@ -40,11 +40,10 @@ void relocate_init(Section *sr) {}
|
||||||
|
|
||||||
void relocate(TCCState *s1, ElfW_Rel *rel, int type, char *ptr, addr_t addr, addr_t val)
|
void relocate(TCCState *s1, ElfW_Rel *rel, int type, char *ptr, addr_t addr, addr_t val)
|
||||||
{
|
{
|
||||||
ElfW(Sym) *sym;
|
int sym_index = ELFW(R_SYM)(rel->r_info);
|
||||||
int sym_index;
|
#ifdef DEBUG_RELOC
|
||||||
|
ElfW(Sym) *sym = &((ElfW(Sym) *)symtab_section->data)[sym_index];
|
||||||
sym_index = ELFW(R_SYM)(rel->r_info);
|
#endif
|
||||||
sym = &((ElfW(Sym) *)symtab_section->data)[sym_index];
|
|
||||||
|
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case R_AARCH64_ABS64:
|
case R_AARCH64_ABS64:
|
||||||
|
|
Loading…
Reference in a new issue