buildtools: filter out checked symbols for icc

For some reason, ICC creates additional global symbols with a . which
triggers an error in the check that validates that symbols in the
experimental section are properly published in the map file of the
library. Filter them out.

Fixes: 3290ac14eb ("buildtools: detect discrepancies for experimental symbols")

Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
David Marchand 2019-07-02 14:13:50 +02:00 committed by Thomas Monjalon
parent a0fbab25b7
commit 8e0144b69d

View File

@ -36,8 +36,9 @@ do
fi
done
# Filter out symbols suffixed with a . for icc
for SYM in `objdump -t $OBJFILE |awk '{
if ($2 != "l" && $4 == ".text.experimental") {
if ($2 != "l" && $4 == ".text.experimental" && !($NF ~ /\.$/)) {
print $NF
}
}'`