History

Fix set but not used error in arm64-link.c

Thomas Preud'homme committed 9 years ago

Commit 23726391 parent 38117941 file · +4 −5Browse files

Unified · Split

arm64-link.c+4−5
@@ -40,11 +40,10 @@ void relocate_init(Section *sr) {} · 39 unmodified lines
40 40
41void relocate(TCCState *s1, ElfW_Rel *rel, int type, char *ptr, addr_t addr, addr_t val)41void relocate(TCCState *s1, ElfW_Rel *rel, int type, char *ptr, addr_t addr, addr_t val)
42{42{
43 ElfW(Sym) *sym;43 int sym_index = ELFW(R_SYM)(rel->r_info);
44 int sym_index;44#ifdef DEBUG_RELOC
45 45 ElfW(Sym) *sym = &((ElfW(Sym) *)symtab_section->data)[sym_index];
46 sym_index = ELFW(R_SYM)(rel->r_info);46#endif
47 sym = &((ElfW(Sym) *)symtab_section->data)[sym_index];
48 47
49 switch(type) {48 switch(type) {
50 case R_AARCH64_ABS64:49 case R_AARCH64_ABS64:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t