I wouldn't want to be dependent upon __attribute__ ((constructor)) as I agree with someone else here that it seems like the kind of thing that might break in future gcc releases.
It's a documented part of GNU C. What makes people think they're likely to break it?
by Chuck — Nov 29
It's a documented part of GNU C. What makes people think they're likely to break it?