I worte a most simple C program main.c
under linux, just like this:
int
main(void)
{
return 0;
}
And compiled :
gcc main.c -o main
...happy, and got main
exe
But when I issued the command
ldd main
It showed me like this:
linux-vdso.so.1 (0x00007ffd78151000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3f53a92000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3f53c9c000)
Why would this program depend on the glibc
without invoking any functions of it ?