libc: Add stack protector support back
authorJohn Marino <draco@marino.st>
Fri, 11 Sep 2015 08:11:53 +0000 (10:11 +0200)
committerJohn Marino <draco@marino.st>
Fri, 11 Sep 2015 08:38:53 +0000 (10:38 +0200)
commit7adf0194ed89f9c2abca05b9503ddfa3cf3ab403
tree7165e99a5497b60272c9f9364c3b3fe6a6deabaa
parent68ef81ed6d65c646d19e2dd14db9f9de52ec7c8f
libc: Add stack protector support back

Based on regressions indicated by dports bulk build (< 10), it appears
that the deactivated stack_protector.c code was used with static stack
protection (e.g. -lssp_nonshared).

FreeBSD moved the file to its own area less than a month ago, which is
why I thought it had been removed.  The plan is to put all security
related code in the same area, so I'm going to follow suit.  While here,
remove the stack_smash_handler, which I believe is obsolete, and reduce
differences with FreeBSD.
lib/libc/Makefile.inc
lib/libc/secure/Makefile.inc [new file with mode: 0644]
lib/libc/secure/Symbol.map [new file with mode: 0644]
lib/libc/secure/stack_protector.c [moved from lib/libc/sys/stack_protector.c with 87% similarity]
lib/libc/secure/stack_protector_compat.c [new file with mode: 0644]
lib/libc/sys/Makefile.inc