20171004 business.international-business: TSX ekes out gain on banks; resource stocks; TMX Group tumbles