<bdo id='HkFlp'></bdo><ul id='HkFlp'></ul>

<i id='HkFlp'><tr id='HkFlp'><dt id='HkFlp'><q id='HkFlp'><span id='HkFlp'><b id='HkFlp'><form id='HkFlp'><ins id='HkFlp'></ins><ul id='HkFlp'></ul><sub id='HkFlp'></sub></form><legend id='HkFlp'></legend><bdo id='HkFlp'><pre id='HkFlp'><center id='HkFlp'></center></pre></bdo></b><th id='HkFlp'></th></span></q></dt></tr></i><div id='HkFlp'><tfoot id='HkFlp'></tfoot><dl id='HkFlp'><fieldset id='HkFlp'></fieldset></dl></div>
    1. <tfoot id='HkFlp'></tfoot>
    2. <legend id='HkFlp'><style id='HkFlp'><dir id='HkFlp'><q id='HkFlp'></q></dir></style></legend>

      1. <small id='HkFlp'></small><noframes id='HkFlp'>

      2. gcc - 如何创建目标文件的映射文件

        时间:2023-09-18

        <small id='mof5u'></small><noframes id='mof5u'>

            <tbody id='mof5u'></tbody>
            <bdo id='mof5u'></bdo><ul id='mof5u'></ul>
            <legend id='mof5u'><style id='mof5u'><dir id='mof5u'><q id='mof5u'></q></dir></style></legend>

          • <tfoot id='mof5u'></tfoot>

                <i id='mof5u'><tr id='mof5u'><dt id='mof5u'><q id='mof5u'><span id='mof5u'><b id='mof5u'><form id='mof5u'><ins id='mof5u'></ins><ul id='mof5u'></ul><sub id='mof5u'></sub></form><legend id='mof5u'></legend><bdo id='mof5u'><pre id='mof5u'><center id='mof5u'></center></pre></bdo></b><th id='mof5u'></th></span></q></dt></tr></i><div id='mof5u'><tfoot id='mof5u'></tfoot><dl id='mof5u'><fieldset id='mof5u'></fieldset></dl></div>

                1. 本文介绍了gcc - 如何创建目标文件的映射文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一个名为 a.out.map.map 文件,它是从 .cpp/.obj 文件,但我不记得是怎么做的.我已经包含了一个片段:

                  I have a .map file called a.out.map that was created from a .cpp/.obj file but I don't remember how. I've included a snippet:

                  .plt            0x0000380c      0x848
                   *(.plt)
                   .plt           0x0000380c      0x848 C:/QNX650/target/qnx6/armle-v7/lib/crti.o
                  
                  .text           0x00004054     0x5448
                                  0x00004054                _btext = .
                   *(.text .stub .text.* .gnu.linkonce.t.*)
                   .text          0x00004054        0x0 C:/QNX650/target/qnx6/armle-v7/lib/crti.o
                   .text          0x00004054       0xf4 C:/QNX650/host/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx6.5.0eabi/4.4.2/pic//crtbegin.o
                   .text          0x00004148     0x1b3c C:Temp2qccTulUdbeventlookupmodel.o
                                  0x00004b80                AL2HMIBridge::EventLookupModel::data(QModelIndex const&, int) const
                                  0x000054f8                AL2HMIBridge::EventLookupModel::rowCount(QModelIndex const&) const
                                  0x000046a8                AL2HMIBridge::EventLookupModel::getNameFromId(unsigned int, unsigned int)
                                  0x00004148                AL2HMIBridge::EventLookupModel::EventLookupModel(AL2HMIBridge::CsvImporter&, QObject*)
                                  0x00004738                AL2HMIBridge::EventLookupModel::getElementFromId(unsigned int, unsigned int)
                                  0x00004ab4                AL2HMIBridge::EventLookupModel::getElementFromName(QString const&)
                                  0x00005548                AL2HMIBridge::EventLookupModel::appendElement(AL2HMIBridge::EventLookupModel::EventElement const&)
                                  0x00005804                AL2HMIBridge::EventLookupModel::appendElement(QString const&, unsigned int, unsigned int, QList<
                  

                  生成 .map 文件的 gcc 命令是什么?

                  What's the gcc command to produce the .map file?

                  推荐答案

                  如果你正在链接程序并且想要生成地图输出添加:

                  If you are linking the program and want to generate map output add:

                   -Xlinker -Map=output.map 
                  

                  到 gcc 命令以使其创建映射文件 output.map

                  to the gcc command in order to make it create the map file output.map

                  如果要查看目标文件的符号和重定位,可以使用objdump工具:

                  If you want to see the symbols and relocation of an object file, you can use the objdump tool:

                  objdump -x an_object_file.o
                  

                  这篇关于gcc - 如何创建目标文件的映射文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:算术右移给出虚假结果? 下一篇:C++11 正则匹配

                  相关文章

                  最新文章

                  <tfoot id='D6qfE'></tfoot>
                  <legend id='D6qfE'><style id='D6qfE'><dir id='D6qfE'><q id='D6qfE'></q></dir></style></legend>
                  <i id='D6qfE'><tr id='D6qfE'><dt id='D6qfE'><q id='D6qfE'><span id='D6qfE'><b id='D6qfE'><form id='D6qfE'><ins id='D6qfE'></ins><ul id='D6qfE'></ul><sub id='D6qfE'></sub></form><legend id='D6qfE'></legend><bdo id='D6qfE'><pre id='D6qfE'><center id='D6qfE'></center></pre></bdo></b><th id='D6qfE'></th></span></q></dt></tr></i><div id='D6qfE'><tfoot id='D6qfE'></tfoot><dl id='D6qfE'><fieldset id='D6qfE'></fieldset></dl></div>

                    • <bdo id='D6qfE'></bdo><ul id='D6qfE'></ul>

                      <small id='D6qfE'></small><noframes id='D6qfE'>