Stir the flour together with the sugar in a mixing bowl. The dry mixture should look evenly blended before you add liquid.
Bring the cake portion of butter, cocoa, and cola to a boil in a saucepan, stirring as it heats. Look for melted butter, bubbling liquid, and evenly moistened cocoa without dry pockets.
Work the hot chocolate mixture into the flour and sugar until evenly combined. Scrape through the bottom of the bowl so no pale flour streaks remain.
Mix in the buttermilk, beaten eggs, baking soda, vanilla, and miniature marshmallows. Expect a loose batter with marshmallows floating through it rather than a thick, fluffy mixture.
Bake the batter in the confirmed cake pan at 375°F for approximately 30 minutes, checking the center with a fork or toothpick. The tester should come out without wet batter, and the center should look set.
For the icing, bring the remaining butter and cola together with the confirmed icing cocoa amount to a boil in a saucepan, then beat the hot mixture into the confirmed confectioners’ sugar amount. The icing should become smooth and pourable, without dry sugar pockets.
Stir the broken pecans through the icing and pour it across the cake while the cake is still hot. The warm glaze should flow over the surface and settle around the pecans.
Allow the iced cake to cool before cutting it into squares. The glaze will become less fluid as it sets, making the slices easier to lift.