title: Include static symbols in GNU ld map file?
body: <p>It's good programming practice to define module-local symbols as static (assuming C). Unfortunately, that interferes with analysis of the resulting object/binary files. For example, GNU ld map file (-Map=...) doesn't include static symbols, so important information is missed (like, how many symbols there're really in a module, size of each function defined, etc.).</p>
  
  <p>Is there way to ask GNU ld to include static symbols in a map file, without modifying original source code? (It's obvious that one can make static modifier conditional, but that's quite a chore when analyzing bunch of 3rd-party projects.)</p>