All key sectors, barring IT, participated in the rally, with pharma, energy, and auto emerging as the top gainers