修复堆栈支持

This commit is contained in:
liankong
2025-03-30 17:09:51 +08:00
parent 770c9632ae
commit d6b0ce2565
2 changed files with 10 additions and 1 deletions

View File

@@ -70,11 +70,12 @@ struct CompactProxySymbol proxy_symbol[] = {
static unsigned long sukisu_find_proxy_symbol(const char* name) {
// 查不到就查查兼容的符号
int i;
for(i = 0; i < (sizeof(proxy_symbol) / sizeof(struct CompactProxySymbol)); i++) {
struct CompactProxySymbol* symbol = &alias_symbol[i];
if(strcmp(name, symbol->symbol_name) == 0) {
if(symbol->cached_address == NULL) {
symbol->cached_address = kallsyms_lookup_name(name);
symbol->cached_address = (void*) kallsyms_lookup_name(name);
}
if(symbol->cached_address != NULL) {
return (unsigned long) &symbol->cached_address;