This option changes the display of the index column when printing
memory map output. Use this option with --map
.
--section_index_display=type
Where
is
one of the following:type
cmdline
Alters the display of the map file to show the order that a section appears on the command-line. The command-line order is defined as
File.Object.Section
where:Section
is the section index,sh_idx
, of theSection
in theObject
.Object
is the order thatObject
appears in theFile
.File
is the order theFile
appears on the command line.
The order the
Object
appears in theFile
is only significant if the file is an ar archive.internal
The index value represents the order in which the linker creates the section.
input
The index value represents the section index of the section in the original input file.
Use --map
with --section_index_display=input
when
you want to find the exact section in an input object.
- Reference