I compiled code(in linux) that make use of printf
and I saw that during compile (gcc -c
) the symbol stays printf
but when I compile and link it (gcc -o
) I see that the symbol changes to printf@GLIBC.2.2.5
. It also happens with other symbols that are part of glibc.
Does the linker change the symbol so it will only work when linking with one version of glibc and not others?