git: libc: Add stack protector support back

John Marino marino at crater.dragonflybsd.org
Fri Sep 11 01:41:58 PDT 2015


commit 7adf0194ed89f9c2abca05b9503ddfa3cf3ab403
Author: John Marino <draco at marino.st>
Date:   Fri Sep 11 10:11:53 2015 +0200

    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.

Summary of changes:
 lib/libc/Makefile.inc                      |  1 +
 lib/libc/secure/Makefile.inc               |  8 ++++++++
 lib/libc/secure/Symbol.map                 |  6 ++++++
 lib/libc/{sys => secure}/stack_protector.c | 27 ++++-----------------------
 lib/libc/secure/stack_protector_compat.c   | 17 +++++++++++++++++
 lib/libc/sys/Makefile.inc                  |  5 -----
 6 files changed, 36 insertions(+), 28 deletions(-)
 create mode 100644 lib/libc/secure/Makefile.inc
 create mode 100644 lib/libc/secure/Symbol.map
 rename lib/libc/{sys => secure}/stack_protector.c (87%)
 create mode 100644 lib/libc/secure/stack_protector_compat.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7adf0194ed89f9c2abca05b9503ddfa3cf3ab403


-- 
DragonFly BSD source repository


More information about the Commits mailing list