TORONTO - Canada's main stock index eked out a gain Friday as a rise in tech stocks helped outweigh losses in energy, while U.S. markets were mixed after employment reports on both sides of the border.