linker - "Local Linker Symbols"和 "Local Program Variables"有什么区别?

标签 linker symbols elf

我想知道“本地链接器符号”和“本地程序变量”之间的区别?

我正在读一本书,里面有这样的:

alt text http://img682.imageshack.us/img682/9816/symbols.jpg

每个是什么意思?有什么例子吗?

最佳答案

/* This function has global scope within this file (module). It is represented 
 * by a "local linker symbol", since the linker will need to resolve its address 
 * if it is referenced by any other function.
 */
static void some_function()
{
    /* These "local program variables" are of no interest to the linker 
     * since they are not visible outside the current function, so no other 
     * part of the program can possibly reference them.
     */
    int a, b, c;
}

关于linker - "Local Linker Symbols"和 "Local Program Variables"有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2375441/

相关文章:

grails - 为什么货币符号在 grails 中显示像 � 的值

c - xfce 鼠标垫源代码中的损坏符号

android - android art elf和linux elf文件有什么区别?

c - 如何从 elf 调用和编译函数到我的二进制文件?

c++ - 链接器映射文件中的 __unwind$ 是什么

c++ - 动态依赖 lib/tls 搜索路径

Java 8 不呈现货币符号

c++ - 如何在 C/C++ 中使用带有 OpenSSL 的静态链接

c++ - 在 C++ 中导入 DLL 并使用 extern 函数

gcc - x86_64 : Is it possible to "in-line substitute" PLT/GOT references?