https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125190

            Bug ID: 125190
           Summary: Stale documentation of __stack_chk_guard
           Product: gcc
           Version: 16.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

Documentation of __stack_chk_guard

@deftypefn {Target Hook} tree TARGET_STACK_PROTECT_GUARD (void)
This hook returns a @code{DECL} node for the external variable to use
for the stack protection guard.  This variable is initialized by the
runtime to some random value and is used to initialize the guard value 
that is placed at the top of the local stack frame.  The type of this
variable must be @code{ptr_type_node}.

The default version of this hook creates a variable called
@samp{__stack_chk_guard}, which is normally defined in @file{libgcc2.c}.
@end deftypefn

was added by

commit 7d69de618e732d343228a07d797a30e39a6363f4
Author:     Richard Henderson <[email protected]>
AuthorDate: Mon Jun 27 00:41:16 2005 -0700
Commit:     Jakub Jelinek <[email protected]>
CommitDate: Mon Jun 27 09:41:16 2005 +0200

    c-cppbuiltin.c (c_cpp_builtins): Add __SSP_ALL__ and __SSP__.

__stack_chk_guard was moved to libssp later by

commit 77008252819720c987f11b3dade670e2b3ba09b8
Author:     Jakub Jelinek <[email protected]>
AuthorDate: Sat Jul 2 10:52:21 2005 +0200
Commit:     Jakub Jelinek <[email protected]>
CommitDate: Sat Jul 2 10:52:21 2005 +0200

    Makefile.def (target_modules): Add libssp.

But its documentation wasn't updated.

Reply via email to