The song on the G.I. Joe soundtrack that samples "Bang a Gong (Get It On)" by T. Rex is:
"Action Theme from G.I. Joe (The Cobra Strike)" by Ron Jones – also known as "The Hall of the Serpent King".
The 1980s G.I. Joe cartoon soundtrack leaned heavily into rock/pop pastiche. Jones' track is a high-energy instrumental that repurposes the T. Rex riff for Cobra-themed action sequences—fitting for a franchise built on 30-minute toy commercials with surprisingly catchy music.