Skip to content

Commit

Permalink
_info-bin.sh: try fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Oct 16, 2024
1 parent 0ba68ef commit 6f7fa06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _info-bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ while [ -n "${1:-}" ]; do
if [ "${is_curl}" = '1' ] && [ "${filetype}" != 'exe' ]; then # Verify exported curl symbols
"${NM}" --extern-only --defined-only "${f}" # -g -U
"${NM}" --extern-only --defined-only "${f}" | grep -a -F ' _curl_' | sort || false # -g -U
"${NM}" --extern-only --defined-only "${f}" | grep -a -F ' T ' | grep -a -F -v ' curl_' && false # should not export anything else except the libcurl API
"${NM}" --extern-only --defined-only "${f}" | grep -a -F -v ' T _curl_' && false # should not export anything else except the libcurl API
fi
elif [ "${_OS}" = 'linux' ]; then
# NOTE: objdump -syms (-t) to show symbol visibility flags
Expand Down Expand Up @@ -111,7 +111,7 @@ while [ -n "${1:-}" ]; do
if [ "${filetype}" != 'exe' ]; then # Verify exported curl symbols
"${NM}" --dynamic --defined-only "${f}" # -D -U
"${NM}" --dynamic --defined-only "${f}" | grep -a -F ' curl_' | sort || false # -D -U
"${NM}" --dynamic --defined-only "${f}" | grep -a -F ' T ' | grep -a -F -v ' curl_' && false # should not export anything else except the libcurl API
"${NM}" --dynamic --defined-only "${f}" | grep -a -F -v ' T curl_' && false # should not export anything else except the libcurl API
fi
# nm -D -g = --dynamic --extern-only
fi
Expand Down

0 comments on commit 6f7fa06

Please sign in to comment.