Skip to content

Commit

Permalink
termux_step_massage: Check for unresolved symbols
Browse files Browse the repository at this point in the history
defined in libandroid-execinfo as well.

Reference: #14285
  • Loading branch information
xtkoba committed Jan 3, 2023
1 parent 5e25f96 commit fbaecc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build/termux_step_massage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbaecc5

Please sign in to comment.