Commit b655027
committed
Stable-symbol-names test: compare only global symbols
With MinGW and specific flags symbol may end up in multiple sections in some cases like:
0000000000000000 p .pdata$_ZN20stable_symbol_names113mono_function17hd4880e88dec8766dE
0000000000000000 t .text$_ZN20stable_symbol_names113mono_function17hd4880e88dec8766dE
0000000000000000 r .xdata$_ZN20stable_symbol_names113mono_function17hd4880e88dec8766dE
0000000000000000 T _ZN20stable_symbol_names113mono_function17hd4880e88dec8766dE
This will cause an error when comparing that output directly with other library
that only imports the symbol since it will appear only once.
To avoid the issue pass "-g" to nm so only the global symbol (the one
with "T" letter) will be listed.1 parent 7c97ddf commit b655027
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments