termux_step_massage: Check for unresolved symbols

defined in libandroid-execinfo as well.

Reference: https://github.com/termux/termux-packages/issues/14285
This commit is contained in:
Tee KOBAYASHI 2023-01-04 06:46:27 +09:00
parent 5e25f96715
commit fbaecc5c26
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ termux_step_massage() {
if [ -d "lib" ]; then
SYMBOLS="$($READELF -s $($TERMUX_HOST_PLATFORM-clang -print-libgcc-file-name) | grep "FUNC GLOBAL HIDDEN" | awk '{print $8}')"
SYMBOLS+=" $(echo libandroid_{sem_{open,close,unlink},shm{ctl,get,at,dt}})"
SYMBOLS+=" $(echo backtrace{,_symbols{,_fd}})"
grep_pattern="$(create_grep_pattern $SYMBOLS)"
for lib in "$(find lib -name "*.so")"; do
if ! $READELF -h "$lib" &> /dev/null; then