It looks like fpc calls Startup() from cortexm4f_start.inc. (Or at least, it should, but I haven't tested that yet.)
After that I have to configure the clocks and peripherals myself. I'm now busy porting the USB code for a virtual COM port from a github C project.
I'll post everything when it works.