NEW YORK (Reuters) - U.S. stocks eked out a slight gain on Wednesday, as advances in some major technology stocks offset losses in energy and helped keep major indexes just above the unchanged mark.