I have a local static variable, something like this:
void function(void) {
static unsigned char myVariable = 0;
...
I dump the symbol table using readelf as follows:
readelf -s myprogram.elf
and I get the symbol table, that contains myVariable
as follows:
...
409: 00412668 1 NOTYPE LOCAL DEFAULT 16 myVariable.9751
...
My question is: what does the number mean after the name of the variable and the dot? And is there any detailed documentation about the output format of readelf? The man page does not contain information about the format of the symbol table, and I cannot find anything about this. (I'm using Xilinx's ARM GNU tools, but I guess, this is kind of the same for other platforms as well) Thanks!