This deduplicates some code between codegen backends and may in the future allow adding extra metadata that is only known at link time.
tests/run-make-fulldeps/hotplug_codegen_backend