send2vinnie / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

Support -M/--print-map option #117

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
       -M
       --print-map
           Print a link map to the standard output.  A link map provides information about the link,
           including the following:

           o   Where object files are mapped into memory.

           o   How common symbols are allocated.

           o   All archive members included in the link, with a mention of the symbol which caused the
               archive member to be brought in.

           o   The values assigned to symbols.

               Note - symbols whose values are computed by an expression which involves a reference to a
               previous value of the same symbol may not have correct result displayed in the link map.
               This is because the linker discards intermediate results and only retains the final value of
               an expression.  Under such circumstances the linker will display the final value enclosed by
               square brackets.  Thus for example a linker script containing:

                          foo = 1
                          foo = foo * 4
                          foo = foo + 8

               will produce the following output in the link map if the -M option is used:

                          0x00000001                foo = 0x1
                          [0x0000000c]                foo = (foo * 0x4)
                          [0x0000000c]                foo = (foo + 0x8)

               See Expressions for more information about expressions in linker scripts.

Original issue reported on code.google.com by LubaTang on 7 Jan 2013 at 6:44

GoogleCodeExporter commented 9 years ago
Loop in Joerg.

Original comment by LubaTang on 5 Mar 2013 at 9:48

GoogleCodeExporter commented 9 years ago

Original comment by pete.c...@gmail.com on 1 Nov 2013 at 2:43