Open Gopika1996 opened 4 years ago
where are you running the binary ?
-Wl,--hash-style=both
$ readelf -S libxxx.so | grep "hash"
[ 4] .gnu.hash GNU_HASH 0000000000003120 00003120
[ 5] .hash HASH 00000000000035f8 000035f8
-Wl,--hash-style=sysv
$ readelf -S libxxx.so | grep "hash"
[ 4] .hash HASH 0000000000003120 00003120
-Wl,--hash-style=gnu
$ readelf -S libxxx.so | grep "hash"
[ 4] .gnu.hash GNU_HASH 0000000000003120 00003120
Getting error as "CANNOT LINK EXECUTABLE: empty/missing DT_HASH in "./androidvncserver" (built with --hash-style=gnu?)" while running binary.