tools: add arch flag to collect_symbols.py.