From: kettenis Date: Mon, 27 Apr 2015 13:25:10 +0000 (+0000) Subject: Adjust ld semantics to make static PIE the default. Forgotten by pascal@. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=65ffbbf604b7e3584122fe15d26ad667d1edbd08;p=openbsd Adjust ld semantics to make static PIE the default. Forgotten by pascal@. Original commit message: Change gcc and ld semantics to make static PIE the default when invoking 'cc -static'. To explicitly request the legacy behaviour, use -nopie. For the few port affected by this, bumps will follow shortly. looks good to kettenis@, ok kurt@ --- diff --git a/gnu/usr.bin/binutils-2.17/ld/lexsup.c b/gnu/usr.bin/binutils-2.17/ld/lexsup.c index 6df8c2110f8..654edb52f27 100644 --- a/gnu/usr.bin/binutils-2.17/ld/lexsup.c +++ b/gnu/usr.bin/binutils-2.17/ld/lexsup.c @@ -722,8 +722,6 @@ parse_args (unsigned argc, char **argv) break; case OPTION_NON_SHARED: config.dynamic_link = FALSE; - if (! link_info.shared) - link_info.pie = FALSE; break; case OPTION_CREF: command_line.cref = TRUE;