• system.map文件详解


    符号类型.

    小写字母表示局部; 大写字母表示全局(外部).
    A
    The symbol's value is absolute, and will not be changed by further linking.

    B
    The symbol is in the uninitialized data section (known as BSS).

    C
    The symbol is common. Common symbols are uninitialized data. When linking, multiple common symbols may appear with the same name. If the symbol is defined anywhere, the common symbols are treated as undefined references. For more details on common symbols, see the discussion of -warn-common in Linker options.

    D
    The symbol is in the initialized data section.

    G
    The symbol is in an initialized data section for small objects. Some object file formats permit more efficient access to small data objects, such as a global int variable as opposed to a large global array.

    I
    The symbol is an indirect reference to another symbol. This is a GNU extension to the a.out object file format which is rarely used.

    N
    The symbol is a debugging symbol.

    R
    The symbol is in a read only data section.

    S
    The symbol is in an uninitialized data section for small objects.

    T
    The symbol is in the text (code) section.

    U
    The symbol is undefined.

    V
    The symbol is a weak object. When a weak defined symbol is linked with a normal defined symbol, the normal defined symbol is used with no error. When a weak undefined symbol is linked and the symbol is not defined, the value of the weak symbol becomes zero with no error.

    W
    The symbol is a weak symbol that has not been specifically tagged as a weak object symbol. When a weak defined symbol is linked with a normal defined symbol, the normal defined symbol is used with no error. When a weak undefined symbol is linked and the symbol is not defined, the value of the weak symbol becomes zero with no error.

    -
    The symbol is a stabs symbol in an a.out object file. In this case, the next values printed are the stabs other field, the stabs desc field, and the stab type. Stabs symbols are used to hold debugging information. For more information, see Stabs.

    ?
    The symbol type is unknown, or object file format specific.

    符号类型:大写为全局符号,小写为局部符号
    A:该符号的值是不能改变的,等于const
    B:该符号来自于未初始化代码段bss段
    C: 该符号是通用的,通用的符号指未初始化的数据。当链接时,多个通用符号可能对应一个名称,如果该符号在某一个位置定义,这个通用符号被当做未定义的引用。不明白,内核中也没有该类型的符号
    D: 该符号位于初始化的数据段
    G: 位于初始化数据段,专门对应小的数据对象,比如global int x,对应的大数据对象为 数组类型等
    I: 到其他符号的间接引用,是对于a.out文件的GNU扩展,使用非常少
    N:调试符号
    R:只读代码段的符号
    S:BSS段(未初始化数据段)的小对象符号
    T:代码段符号,全局函数,t为局部函数
    U:未定义的符号
    V:该符号是一个weak object,当其连接到为定义的对象上上,该符号的值变为0
    W: 类似于V
    —: 该符号是a.out文件中的一个stabs symbol,获取调试信息
    ?: 未知类型的符号


    ————————————————
    版权声明:本文为CSDN博主「p.c.wang」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/chun_1959/article/details/45786769

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    微信公众号:  共鸣圈
    欢迎讨论,邮件:  924948$qq.com       请把$改成@
    QQ群:263132197
    QQ:    924948

    良辰美景补天漏,风雨雷电洗地尘
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  • 相关阅读:
    P1990 覆盖墙壁题解
    golang学习笔记---在接口和类型之间转换
    golang学习笔记 --- HTTP 客户端
    golang学习笔记 ----interface(接口3)
    golang学习笔记---上下文 context
    golang学习笔记 ----interface(接口)
    golang学习笔记---channel&goroutine
    golang学习笔记---select(3)
    golang 学习笔记 ---select关键字用法
    golang学习笔记---channel(2)
  • 原文地址:https://www.cnblogs.com/welhzh/p/15304800.html
Copyright © 2020-2023  润新知