M-theory and characteristic classes