Skip to content

Commit

Permalink
debug 4
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Oct 16, 2024
1 parent 72b111f commit e033bae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _info-bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ 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
echo '------------------------------'
echo '------------------------------'
"${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
Expand Down Expand Up @@ -114,7 +116,7 @@ while [ -n "${1:-}" ]; do
# Allowlist:
# - MUSL: _fini, _init
# - ?: _start, _start_c
"${NM}" --dynamic --defined-only "${f}" | grep -a -E -v ' T (curl_|(_fini|_init|_start|_start_c)$)' && false || true # FIXME: should not export anything else except the libcurl API
"${NM}" --dynamic --defined-only "${f}" | grep -a -E -v ' T (curl_|(_fini|_init|_start|_start_c)$)' || true # FIXME: should not export anything else except the libcurl API
fi
# nm -D -g = --dynamic --extern-only
fi
Expand Down

0 comments on commit e033bae

Please sign in to comment.