Rory McIlroy launched his club down the fairway in anger and smashed a tee marker during a frustrating second round at the US Open at Oakmont.