GLOBAL constructor symbol names for static vars are bogus!

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Thu Mar 12 13:35:00 GMT 1998


> I am not very familiar with how collect2 works.  Could you explain to
> me how I could invoke it to do something similar to what I described 
> above?  Remember, all my linking is relocatable - I do not produce
> any actual "programs".

I know almost nothing about VxWorks, and little about collect2. It is
basically a drop-in replacement for the ld(1), which calls real-ld and
a few other things (nm, ...) to detect things it needs to instantiate
(constructors, destructors, things from the template repository, ...)
It creates temporary C files, compiles them, and links them together
with the other objects, again using real-ld.

So I suppose with the right replacement for real-ld, you could do
almost anything you want.

Martin



More information about the Gcc-bugs mailing list