What happens when Position Independent Code is placed in a static library? (In particular, on x86-64)
That is to say: Several .o
files are generated with PIC and placed in a .a
file. This .a
is statically linked into a final executable as normal.
It seems to work, but does it ever make sense to do this? Why?
What is the final address calculation done? (link-time? run-time?)
Thank you