Rory McIlroy overcame a touch of sunstroke to hold a share of the halfway lead at the DP World Tour Championship.