The linker would pull in only foo_1.o in this case. What option can I
give to
gcc / ld to verify the above statement?
Pritam
I basically looked at
http://stackoverflow.com/questions/715502/how-do-linkers-decide-what-parts-of-libraries-to-include
and
http://www.lurklurk.org/linkers/linkers.html#staticlibs
I understand the theory behind it, I am looking at how to get the
visible proof
w.r.t. what the linker is actually doing w.r.t. pulling in the object
files.
Pritam
That's not a C question. You might try asking in gnu.gcc.help.
--
Keith Thompson (The_Other_Keith) ks...@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Got the answer in the below thread.
Pritam