gcc47: Add __stack_chk_fail_local hack from gcc44
authorJohn Marino <draco@marino.st>
Sat, 20 Oct 2012 00:06:27 +0000 (02:06 +0200)
committerCharlie <root@banshee.synsport.com>
Sat, 20 Oct 2012 02:36:01 +0000 (04:36 +0200)
commit5dd34005fbf5509736906dc6aa56d3e77f6a3dcb
tree37a98bffe90bf76455f7b03dfcb87db7286a35aa
parent9d5dccab15766b547c37d9b452e0971d340a6453
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
register.

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
ports.

This hack should be fixed properly as soon as convenient.
contrib/gcc-4.7/README.DRAGONFLY
contrib/gcc-4.7/gcc/config/i386/i386.c