https://sourceware.org/bugzilla/show_bug.cgi?id=16566

            Bug ID: 16566
           Summary: Please provide a way to include static symbols in
                    linker map file
           Product: binutils
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: pmiscml at gmail dot com

Link map file (-Map=) is one good way to get detailed information about
complete ready-to-deploy binary product. Unfortunately, a map file doesn't
include information about local (static in C-speak) symbols. Usage of static
symbols is the best practice in contemporary C and other languages, and such
situation means that a map file unfortunately is not suitable for many
interesting analyses (like for example tracking detailed function sizes across
application versions/optimization settings).

So, please consider:

1. Adding a linker option to include local/static symbols in generated map
file.
2. Alternatively, it may be argued that users whu are interested in map files
are probably want to have information about all symbols anyway, so it can be
just changed to include local/static symbols unconditionally, without growing
number of command-line options.

Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to