History

tcc_load_dll fix (Tao Wu)

bellard committed 21 years ago

Commit 5487bc21 parent aee0da01 file · +3 −3Browse files

Unified · Split

tccelf.c+3−3
@@ -2095,7 +2095,7 @@ static int tcc_load_dll(TCCState *s1, int fd, const char *filename, int level) · 2094 unmodified lines
2095{ 2095{
2096 Elf32_Ehdr ehdr;2096 Elf32_Ehdr ehdr;
2097 Elf32_Shdr *shdr, *sh, *sh1;2097 Elf32_Shdr *shdr, *sh, *sh1;
2098 int i, nb_syms, nb_dts, sym_bind, ret;2098 int i, j, nb_syms, nb_dts, sym_bind, ret;
2099 Elf32_Sym *sym, *dynsym;2099 Elf32_Sym *sym, *dynsym;
2100 Elf32_Dyn *dt, *dynamic;2100 Elf32_Dyn *dt, *dynamic;
2101 unsigned char *dynstr;2101 unsigned char *dynstr;
@@ -2184,8 +2184,8 @@ static int tcc_load_dll(TCCState *s1, int fd, const char *filename, int level) · 82 unmodified lines
2184 switch(dt->d_tag) {2184 switch(dt->d_tag) {
2185 case DT_NEEDED:2185 case DT_NEEDED:
2186 name = dynstr + dt->d_un.d_val;2186 name = dynstr + dt->d_un.d_val;
2187 for(i = 0; i < s1->nb_loaded_dlls; i++) {2187 for(j = 0; j < s1->nb_loaded_dlls; j++) {
2188 dllref = s1->loaded_dlls[i];2188 dllref = s1->loaded_dlls[j];
2189 if (!strcmp(name, dllref->name))2189 if (!strcmp(name, dllref->name))
2190 goto already_loaded;2190 goto already_loaded;
2191 }2191 }

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