What does “symbol value” from nm command mean?

后端 未结 3 714
梦谈多话
梦谈多话 2020-12-15 05:54

When you list the symbol table of a static library, like nm mylib.a, what does the 8 digit hex that show up next to each symbol mean? Is that the relative locat

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 06:30

    nm shows the values of symbols. Some symbols in a library or object file may show up as zero simply because they haven't been given a value yet. They'll get their actual value at link time.

    Some symbols are code symbols, some are data, etc. Before linking the symbol value is often the offset in the section it resides in,

提交回复
热议问题