Lines Matching refs:nm
7 # Tests the basic functionality of the `nm` command.
9 NM=${NM:=nm}
26 EXPECT_PASS $NM -f posix -A "lib.a" \> nm.out
28 if grep -q "lib.a\[f2.o\]\:" nm.out; then
32 cat nm.out
35 EXPECT_PASS $NM -f posix -A "dir/lib.a" \> nm.out
37 if grep -q "dir/lib.a\[f2.o\]\:" nm.out; then
41 cat nm.out
47 EXPECT_PASS $NM -f posix -g $TST_DATAROOT/f1 \> nm.out
49 if grep -q "^[^ ]\+ [abdft]" nm.out; then
51 cat nm.out
59 EXPECT_PASS $NM -f posix -t o $TST_DATAROOT/f1 \> nm.out
61 if awk '{print $3}' nm.out | grep -q "[8-9a-f]"; then
63 cat nm.out
71 EXPECT_PASS $NM -f sysv $TST_DATAROOT/f1 \> nm.out
73 if grep -q "Name" nm.out; then
77 cat nm.out
102 EXPECT_PASS $NM -f sysv -u $TST_DATAROOT/f1 \> nm.out
104 if grep -q "Undefined symbols from" nm.out; then
108 cat nm.out
114 EXPECT_PASS $NM -s $TST_DATAROOT/lib.a \> nm.out
116 if grep -q "index" nm.out; then