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 ]
22 for SYM in `$LIST_SYMBOL -S EXPERIMENTAL $MAPFILE`
24 objdump -t $OBJFILE | grep -q "\.text.*$SYM$"
26 objdump -t $OBJFILE | grep -q "\.text\.experimental.*$SYM$"
28 if [ $IN_TEXT -eq 0 -a $IN_EXP -ne 0 ]
30 cat >&2 <<- END_OF_MESSAGE
31 $SYM is not flagged as experimental
32 but is listed in version map
33 Please add __rte_experimental to the definition of $SYM
39 # Filter out symbols suffixed with a . for icc
40 for SYM in `objdump -t $OBJFILE |awk '{
41 if ($2 != "l" && $4 == ".text.experimental" && !($NF ~ /\.$/)) {
46 $LIST_SYMBOL -S EXPERIMENTAL -s $SYM -q $MAPFILE || {
47 cat >&2 <<- END_OF_MESSAGE
48 $SYM is flagged as experimental
49 but is not listed in version map
50 Please add $SYM to the version map