diff options
| author | rajdakin <rajdakin@gmail.com> | 2021-04-11 17:53:23 +0200 |
|---|---|---|
| committer | rajdakin <rajdakin@gmail.com> | 2021-04-11 17:53:23 +0200 |
| commit | 72a505a3e885c2e180a6da51e0640953f956258d (patch) | |
| tree | 70e76f79cacd131b6c54d44aaa8ab2b4f02194fa /src/elfs | |
| parent | 550d252386d0a4d2bdb77de7264f6ab1bad98042 (diff) | |
| download | box64-72a505a3e885c2e180a6da51e0640953f956258d.tar.gz box64-72a505a3e885c2e180a6da51e0640953f956258d.zip | |
General improvements to box64 and fixed some SDL2 functions
Diffstat (limited to 'src/elfs')
| -rwxr-xr-x | src/elfs/elfloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index f31dc71f..4e6a3be9 100755 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -785,7 +785,7 @@ Elf64_Sym* GetFunction(elfheader_t* h, const char* name) // TODO: create a hash on named to avoid this loop for (int i=0; i<h->numSymTab; ++i) { int type = ELF64_ST_TYPE(h->SymTab[i].st_info); - if(/*h->SymTab[i].st_info == 18*/type==STT_FUNC) { // TODO: this "18" is probably defined somewhere + if(type==STT_FUNC) { const char * symname = h->StrTab+h->SymTab[i].st_name; if(strcmp(symname, name)==0) { return h->SymTab+i; |