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: making naked attr generally available


> In the case of (1), we should write the _init and _fini functions to
> process .ctors and .dtors as one unit.

As a side note: Using DT_FINI_ARRAY for .dtors is probably wrong (as
is having .dtors in the first place) - at least for C++. In general,
this technique can't guarantee that destruction is in reverse order
from construction.

Regards,
Martin


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