ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.9k stars 287 forks source link

Wrapped libssh2 #1538

Closed zohanzephyr closed 5 months ago

ptitSeb commented 5 months ago

No need for wrapped function here? What's the use case?

zohanzephyr commented 5 months ago

No need for wrapped function here? What's the use case?

I test an application when used libssh2 library, which many functions are relocated, but the function of the real implementation of the library is wrapped so I have to wrap the libssh2 to be able to find the actual address of the function, the subsequent increase in functions I will add!

ptitSeb commented 5 months ago

No need for wrapped function here? What's the use case?

I test an application when used libssh2 library, which many functions are relocated, but the function of the real implementation of the library is wrapped so I have to wrap the libssh2 to be able to find the actual address of the function, the subsequent increase in functions I will add!

you can do something like nm -D /PATH/TO/libssh2.so.1 | grep " [DBTIW] " to get the name of the function available in the lib to pre-fill the _private.h

zohanzephyr commented 5 months ago

No need for wrapped function here? What's the use case?

I test an application when used libssh2 library, which many functions are relocated, but the function of the real implementation of the library is wrapped so I have to wrap the libssh2 to be able to find the actual address of the function, the subsequent increase in functions I will add!

you can do something like nm -D /PATH/TO/libssh2.so.1 | grep " [DBTIW] " to get the name of the function available in the lib to pre-fill the _private.h

Okay, I'll add to that.