stack-protector guard location

Richard Henderson rth@redhat.com
Fri Aug 28 13:25:00 GMT 2009


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~



More information about the Gcc-patches mailing list