History

Call fill_got_entry unconditionally

Call fill_got_entry unconditionally from fill_got so as to avoid warnings on !x86-64 architectures. This can be done since this code path is only followed by x86-64 architecture anyway.

Thomas Preud'homme committed 12 years ago

Commit 361ec4f1 parent c6017181 file · +0 −2Browse files

Unified · Split

tccelf.c+0−2
@@ -1541,13 +1541,11 @@ ST_FUNC void fill_got(TCCState *s1) · 1540 unmodified lines
1541 continue;1541 continue;
1542 for_each_elem(s, 0, rel, ElfW_Rel) {1542 for_each_elem(s, 0, rel, ElfW_Rel) {
1543 switch (ELFW(R_TYPE) (rel->r_info)) {1543 switch (ELFW(R_TYPE) (rel->r_info)) {
1544#ifdef TCC_TARGET_X86_64
1545 case R_X86_64_GOT32:1544 case R_X86_64_GOT32:
1546 case R_X86_64_GOTPCREL:1545 case R_X86_64_GOTPCREL:
1547 case R_X86_64_PLT32:1546 case R_X86_64_PLT32:
1548 fill_got_entry(s1, rel);1547 fill_got_entry(s1, rel);
1549 break;1548 break;
1550#endif
1551 }1549 }
1552 }1550 }
1553 }1551 }

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