This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: init_priority (was Re: Any further documentation available ?)
- To: SchirmerH at Innovative-Systems dot de, gcc at gcc dot gnu dot org
- Subject: Re: init_priority (was Re: Any further documentation available ?)
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Wed, 20 Dec 2000 18:22:20 -0500
>> Can init_priority be used with COFF?
Phil> I don't know about COFF systems (I don't have one to test), but you can
Phil> try this and see.
collect2 is supposed to sort the initializers and call them in
order. I think the limitation on ELF systems is because of sorting that
the linker needs to perform on the .init/.fini sections. When using
"dumber" object file formats, collect2 does not rely on the linker and
should get things right because it explicitly generates a function to call
the constructor functions.
David