This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Typeinfo names are generated and stored even with --no_rtti and --no_rtti_data

I'm using ARM Compiler 5 (ARMCC) in Keil 5.25. I'm using c++11.

I'm using c++11 with self-made analogue of std::function (since there is no std::function in STL provided with armcc).
Recently I noticed that rather my binary contains several strange-looking strings like

N8callback14DelegateLambdaIZN5tasks13BatteryTask_t6worker

and so on.

I looked for their addresses in linker .map file and found that these are "typeinfo names" for some of my lambdas.

I'm pretty sure that I don't need them and don't use them. But compiler still generates them even with --no_rtti and --no_rtti_data and linker doesn't throw them away even with --feedback.

How can I get rid of them? They tend to take quite a lot of space.