build: improve symbols test

Sometimes symbols, particularly global variables, may be placed in the
"small objects" section.

https://bugzilla.gnome.org/show_bug.cgi?id=741348