TORONTO - Gains in technology stocks helped offset weakness in the energy sector as Canada's main stock index climbed higher on Friday, while U.S. stock markets took a breather.