From bdbe6602377fe5547501809c2b1c30aa2486a28f Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Tue, 28 Aug 2018 05:32:07 +0200 Subject: [PATCH] [tests] properly check symbols on PPC64 Signed-off-by: Fabio M. Di Nitto --- libnozzle/tests/api-test-coverage | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libnozzle/tests/api-test-coverage b/libnozzle/tests/api-test-coverage index c68f862b3..06a614392 100755 --- a/libnozzle/tests/api-test-coverage +++ b/libnozzle/tests/api-test-coverage @@ -12,7 +12,10 @@ builddir="$2"/libnozzle headerapicalls="$(grep nozzle_ "$srcdir"/libnozzle.h | grep -v "^ \*" | grep -v ^struct | grep -v "^[[:space:]]" | grep -v typedef | sed -e 's/(.*//g' -e 's/^const //g' -e 's/\*//g' | awk '{print $2}')" -exportedapicalls="$(nm -B -D "$builddir"/.libs/libnozzle.so | grep ' T ' | awk '{print $3}')" +# The PowerPC64 ELFv1 ABI defines the address of a function as that of a +# function descriptor defined in .opd, a data (D) section. Other ABIs +# use the entry address of the function itself in the text (T) section. +exportedapicalls="$(nm -B -D "$builddir"/.libs/libnozzle.so | grep ' [DT] ' | awk '{print $3}')" echo "Checking for exported symbols NOT available in header file"