Skip to content

Commit

Permalink
Fine tuned symbol check script.
Browse files Browse the repository at this point in the history
 * added check for expected syms in modules

Signed-off-by: Toni Uhlig <[email protected]>
  • Loading branch information
utoni committed May 24, 2023
1 parent 1c82e06 commit 3e4cd24
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion utils/check_symbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,21 @@ for line in `nm -P -u "${NDPI_LIB}"`; do
if [ ! -z "${FOUND_SYMBOL}" ]; then
SKIP=0
case "${CURRENT_OBJECT}" in
'[ndpi_utils.o]'|'[ndpi_memory.o]'|'[roaring.o]') SKIP=1 ;;
'[roaring.o]')
case "${FOUND_SYMBOL}" in
'malloc'|'calloc'|'realloc'|'free') SKIP=1 ;;
esac
;;
'[ndpi_utils.o]'|'[ndpi_memory.o]'|'[roaring.o]')
case "${FOUND_SYMBOL}" in
'malloc'|'free') SKIP=1 ;;
esac
;;
'[gcrypt_light.o]')
case "${FOUND_SYMBOL}" in
'free') SKIP=1 ;;
esac
;;
esac

if [ ${SKIP} -eq 0 ]; then
Expand Down

0 comments on commit 3e4cd24

Please sign in to comment.