Revert "pre/postlink refactor"

This reverts commit e3776ae6b539fc3510bb18e1f89405840a2e6021.