Place sugar, milk, peanut butter, mashed banana, and butter in a medium saucepan. Stir over medium heat until mixture is smooth and slightly simmering. Remove from heat and stir in vanilla, salt, oats, and pecans until mixture forms a dough (dough will be slightly sticky)