Rory McIlroy fired a hole-out eagle from the 14th fairway during the second round of the WGC-Mexico Championship, moving him top of the leaderboard.