git: gcc47: Add __stack_chk_fail_local hack from gcc44

John Marino marino at
Fri Oct 19 17:43:35 PDT 2012

commit 5dd34005fbf5509736906dc6aa56d3e77f6a3dcb
Author: John Marino <draco at>
Date:   Sat Oct 20 02:06:27 2012 +0200

    gcc47: Add __stack_chk_fail_local hack from gcc44
    Like gcc44 before it, gcc47 is complaining about the hidden symbol of
    __stack_chk_fail_local.  This patch swildner added to gcc44 will fix the
    issue, but it is a bit of a hack.  A true fix may end up touching libc,
    rtld, and other bits.  The original code is supposd to conserve a PIC
    Note that vendor-built GCCs on FreeBSD exhibit the same behavior and as
    a consequence only the patched base compiler can be used to build certain
    This hack should be fixed properly as soon as convenient.

Summary of changes:
 contrib/gcc-4.7/README.DRAGONFLY       |    1 +
 contrib/gcc-4.7/gcc/config/i386/i386.c |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list