3 # SPDX-License-Identifier: BSD-3-Clause
8 LIST_SYMBOL=$RTE_SDK/buildtools/map-list-symbol.sh
10 # added check for "make -C test/" usage
11 if [ ! -e $MAPFILE ] || [ ! -f $OBJFILE ]
21 DUMPFILE=$(mktemp -t dpdk.${0##*/}.XXX.objdump)
22 trap 'rm -f "$DUMPFILE"' EXIT
23 objdump -t $OBJFILE >$DUMPFILE
26 for SYM in `$LIST_SYMBOL -S EXPERIMENTAL $MAPFILE`
28 if grep -q "\.text.*$SYM$" $DUMPFILE &&
29 ! grep -q "\.text\.experimental.*$SYM$" $DUMPFILE
31 cat >&2 <<- END_OF_MESSAGE
32 $SYM is not flagged as experimental
33 but is listed in version map
34 Please add __rte_experimental to the definition of $SYM
40 # Filter out symbols suffixed with a . for icc
42 if ($2 != "l" && $4 == ".text.experimental" && !($NF ~ /\.$/)) {
47 $LIST_SYMBOL -S EXPERIMENTAL -s $SYM -q $MAPFILE || {
48 cat >&2 <<- END_OF_MESSAGE
49 $SYM is flagged as experimental
50 but is not listed in version map
51 Please add $SYM to the version map