This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: init_priority (was Re: Any further documentation available ?)


>> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]