Include static characters in GNU ld map file?

Good programming practice for defining local-local characters as static (assuming C). Unfortunately, this interferes with the analysis of the resulting object / binaries. For example, the GNU map file ld (-Map = ...) does not include static characters, so information is important (for example, how many characters are in the module, the size of each function, etc.).

Is it possible to ask GNU ld to include static characters in a map file without changing the source code? (Obviously, you can make a static modifier conditional, but this is a rather difficult task when analyzing a group of third-party projects.)

+4
source share
1 answer

nm , objdump ( , ). -t.

.

+3

Source: https://habr.com/ru/post/1526184/


All Articles