git: LTO: Prevent -flto exposing csu internals when linking v2.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Tue Oct 25 09:18:23 PDT 2016


commit b02d68b2e3c9db4758891b3ea7821bb07f1bd5d6
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Wed Oct 12 17:00:23 2016 +0300

    LTO: Prevent -flto exposing csu internals when linking v2.
    
    Userland applications should not see what is happening in these sources,
    let alone have behavioural changes for -fxxx flags during linking.
    
    Also make sure -flto does *not* get near any of crt1 stuff.
    Caused lost os version elf notes in utilities and even segfaults in pkg(8).

Summary of changes:
 gnu/lib/csu/Makefile.csu    |  8 ++++----
 lib/csu/x86_64/Makefile.csu | 11 ++++++++---
 2 files changed, 12 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b02d68b2e3c9db4758891b3ea7821bb07f1bd5d6


-- 
DragonFly BSD source repository


More information about the Commits mailing list