CANADA STOCKS-TSX ekes small gain as mining offset energy losses