I think they actually did all die. If you look in TTT, when they are stuck in the Hornburg, and Theoden decides to ride out, I don't believe there are any elves there except Legolas. I think the others are Theoden, Gamling, Aragorn, Legolas, A rohan standard bearer, and some other Rohan people.