This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: stack-protector guard location


On 08/27/2009 07:29 PM, Dave Korn wrote:
   How do we handle the static vars used to once-only initialise objects in the
static .ctors?

We mark them DECL_IGNORED_P so that they don't appear in the debug info at all. As for how they appear in the object file -- I don't recall, but we do something obvious.

The fact that we want to make this __stack_guard__ thingy
apparent to the debugger somehow makes it quite a different
kettle of fish from the static ctor guards.


r~



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