diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-04-03 21:48:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-03 15:48:04 +0200 |
| commit | 8cba915bca8d48a7ac4d9571004975320f71a7ff (patch) | |
| tree | 259c7742564658696da8f75f421e29c1ceb9bf7e /src/elfs | |
| parent | cd3163a78585c35d41a18f248cb9575c46ffab38 (diff) | |
| download | box64-8cba915bca8d48a7ac4d9571004975320f71a7ff.tar.gz box64-8cba915bca8d48a7ac4d9571004975320f71a7ff.zip | |
Moved more functions to os.h (#2497)
* Removed some unused function declarations * Moved more functions to os.h * review
Diffstat (limited to 'src/elfs')
| -rw-r--r-- | src/elfs/elfloader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 2f8add77..6001b226 100644 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -14,6 +14,7 @@ #include <dlfcn.h> #endif +#include "os.h" #include "custommem.h" #include "box64version.h" #include "elfloader.h" @@ -1334,7 +1335,7 @@ const char* FindNearestSymbolName(elfheader_t* h, void* p, uintptr_t* start, uin if(!h) { if(getProtection((uintptr_t)p)&(PROT_READ)) { uintptr_t adj_p = ((uintptr_t)p)&~(sizeof(onebridge_t)-1); - if(*(uint8_t*)(adj_p)==0xCC && *(uint8_t*)(adj_p+1)=='S' && *(uint8_t*)(adj_p+2)=='C') { + if (*(uint8_t*)(adj_p) == 0xCC && IsBridgeSignature(*(uint8_t*)(adj_p + 1), *(uint8_t*)(adj_p + 2))) { ret = getBridgeName((void*)adj_p); if(ret) { if(start) |