so的一些資訊

2021-09-01 15:23:25 字數 902 閱讀 3078

1.查詢動態庫so所依賴的其他庫:

objdump -x libtest.so | grep need

結果例如:

needed               libc.so

needed               libdl.so

即,需要libc和libdl兩個so。

2.也可以用ndk中的:

android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ld libtest.so來察看更詳細的so資訊

3.察看so中的函式符號:

readelf -s libtest.so | grep init

4.也可以用ndk中的:

android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-readelf -d libtest.so

5.察看so的檔案資訊:

file libtest.so

結果:libtest.so: elf 32-bit lsb shared object, arm, version 1 (sysv), dynamically linked, not stripped

not stripped意味著這個so可以debug,可以反編譯。

又如:file libjni_test.so

libjni_test.so: elf 32-bit lsb shared object, arm, version 1 (sysv), dynamically linked, stripped

這個libjni_test.so 就不能反編譯了。

linux檢視so檔案的一些資訊命令

檢視so檔案是32位還是64位 root n1 native file libhadoop.so.1.0.0 libhadoop.so.1.0.0 elf 64 bit lsb shared object,x86 64,version 1 sysv dynamically linked,not st...

Websocket的一些資訊

html5的websocket api 它可用於客戶端 伺服器端。websocket api是下一代客戶端 伺服器的非同步通訊方法。該通訊取代了單個的tcp套接字,使用ws或wss協議,可用於任意的客戶端和伺服器程式。websocket目前由w3c進行標準化。websocket已經受到firefox...

晶元封裝的一些資訊

plcc plastic leaded chip carrier package 塑料有引線晶元載體封裝,常用的有 pc20,28,44,68和84等引腳 tqfp thin quad flatpack package 細四周扁平封裝,常見100,144,176等引腳 pqfp plastic qu...