Make link resolution work for top-level functions

Review URL: https://chromiumcodereview.appspot.com//71703003