Just make sure you don't become one of those roles then :) Keep learning, show you have a lot to offer, PR/Market yourself, be vocal, get really good at something scarce, be it in tech or management (or...). I can get a job anywhere I would if I wanted, not because i'm so good or to brag (I'm an average programmer for the most part, I just really like it and i'm practical; I get stuff done), but I learned enough on the business side (management as CEO/CTO), tech side, human networking side (I have a lot of contacts who trust me enough to give me a chance when I require it) and marketing side to be perceived as valuable to a lot of medium to large sized companies. Then again; I like working (long hours; I forget time when coding and I don't care about that happening) and I like learning a lot.
Anecdotal; I know two engineers, one over 55 and one over 60; the first one is an expert at lower powered embedded hardware & software of the tiny kind (think smart credit cards, complex dime sized sensors); he gets flown in all over the world to help out for insane amounts. Chinese companies hire him to make more robust stuff. The other one is an expert at Fortran/Cobol/mainframe OS crisis management; whenever a bank anywhere has a very serious issue, he gets flown in to fix it. Again at rates high enough to only need one gig per few years.
Anecdotal; I know two engineers, one over 55 and one over 60; the first one is an expert at lower powered embedded hardware & software of the tiny kind (think smart credit cards, complex dime sized sensors); he gets flown in all over the world to help out for insane amounts. Chinese companies hire him to make more robust stuff. The other one is an expert at Fortran/Cobol/mainframe OS crisis management; whenever a bank anywhere has a very serious issue, he gets flown in to fix it. Again at rates high enough to only need one gig per few years.