int i;
int main() {
return i;
}
编译-static后readelf -l显示程序头从精灵: Elf file type is EXEC (Executable file)
Entry point 0xxxxx30
There are 6 program headers, starting at offset 52
Program Head
add2.c: int counter=0;
int a=0;
int b;
int c;
int add(int a, int b) {
return a+b;
}
编译: GCC -c add2.c -o add2.o 读符号表: readelf --symbols add2.o Symbol table '.symtab' contains 12 entries: