From b6fb81bfe9f482ee242c06a355093b6cab1136a8 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 16 Oct 2024 04:07:20 +0200 Subject: [PATCH] debug 4 --- _info-bin.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_info-bin.sh b/_info-bin.sh index 9697bea29..0115b7ff9 100755 --- a/_info-bin.sh +++ b/_info-bin.sh @@ -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 @@ -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