If I do gcc hello_world.c
, how does gcc
/ld
know it is libc.so.6
that should be linked against? Does gcc
/ld
go through the default shared library paths(however the linker was configured, plus some gcc
additional flavors), and then scan symbol table of each .so
file?
↧
How does gcc on Linux know it is libc.so.6 that contains printf function?
↧