The .got.plt section needs to write VA of .dynamic section, so we cannot build its output buffer in finalizeSections().
There are two approaches to deal with this:
a) Make writeTo virtual, so that section is written after assignAddresses() is called. This is what this patch does.
b) Implement special procedure for writing synthetic input sections (like we do with writeBuildId).