main: added support for whitelists

Useful for intentionally expoted, but not used symbols.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>