This is the mail archive of the
mailing list for the GCC project.
Re: [csl-arm] Use __aeabi_atext.
On Fri, 2004-11-05 at 18:09, Jason Merrill wrote:
> On Fri, 5 Nov 2004 16:54:13 +0000, Paul Brook <email@example.com> wrote:
> > The patch below makes g++ use __aeabi_atexit rather than __cxa_atexit for
> > registering static object destructors, as suggested by the new Arm EABI.
> /me rants about gratuitous differences in the Arm EABI.
It's not gratuitous, it allows for better code to be generated (since
the arguments are in the correct order).
A secondary benefit is that it also permits a smart linker to statically
determine the size of the destructor array (for statically linked
applications) because each call to __aeabi_atexit may be called at most
once. This permits building an image that doesn't require malloc/other
memory management calls.