Move getBaseSymbol somewhere the COFF writer can use.

I will use it there in a second.