This is the mail archive of the gcc-bugs@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: egcc 1.1.2 outputs global object constructors as local (C static) symbols


> Due to a change in the global constructor/destructor symbol 
> export generation, Its harder to make generation of
> constructors table by hand...

Yes; this change was intentional, and it fixed a real bug. That it
broke your 'interesting' build process is unfortunate, but
unavoidable.

If you absolutely need this to work, you have to set-up a
cross-compiler to a target that doesn't support initializer sections.

If this answer does not satisfy you, you'll have to explain in more
detail *why* you want to put the constructor functions into a table -
the linker already does this for you, in a way that interoperates with
the crtstuff provided by egcs.

Regards,
Martin


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