1

I am running readelf -wi file.elf, and looking at the output. I am looking at some of the debug info for local variables, I can find all the variables listed (they all have DW_AT_name), but some do not have

DW_AT_location : stuff

why?

Is there a way to get the location of local variables that don't have this line? No I cannot recompile the code, I have the source, but cannot edit it or recompile it with more gcc flags or anything. I have the dissasembly and elf file (obviously).

user1426923
  • 67
  • 1
  • 5
  • Looks like DW_AT_ is related to the Abbreviation Table for [DWARF](https://en.wikipedia.org/wiki/DWARF), from the manual at https://gcc-renesas.com/gnu-tools-manuals/gnu-sh-user-manual/ – Thomas Jager May 07 '19 at 17:45
  • I looked, and didn't find anything that popped out that explained why some local variables have a location specified and others do not, got any insights? – user1426923 May 07 '19 at 19:54

0 Answers0