Guest
#1694275
using arm-elf-g++ to compile a simple file with a single int in it: int fred = 10; If I do arm-elf-objdump I can see fred. NOW, if I make fred a const: const int fred = 10; it is no longer visible in the object file. In fact, the object file is smaller and I think the data is not there! (I have done this with a const array and you can see its not in the object file) Note that this is NOT a startup problem, it is actually missing from the object file directly after compiling. Can anybody explain where its gone and what I should do about it? Thanks for any help. Regads, Chris.