crtstuff.c change is bad for (at least) OpenServer

Jeffrey A Law law@cygnus.com
Fri Jan 23 21:57:00 GMT 1998


  In message < 19980123110326.40023@dgii.com >you write:
  > Someone has mentioned that other COFF targets are affected by this, too.
Yup.  And the change looks plain wrong to me, at least according to the
comments around the code in question.

The comments say (twice) that the body *and* epilogue belong in the
.init section.  However, the code sticks in a .text which forces the
epilogue into the .text section.

Seems to me that the switch back into .text belongs outside the
__do_global_ctors_aux function, not inside it (if we need it at
all)

I'm going to take the offending TEXT_SECTION_ASM_OP out of egcs until we
can figure out where it really belongs.


jeff



More information about the Gcc mailing list