Adjust ld semantics to make static PIE the default. Forgotten by pascal@.
authorkettenis <kettenis@openbsd.org>
Mon, 27 Apr 2015 13:25:10 +0000 (13:25 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 27 Apr 2015 13:25:10 +0000 (13:25 +0000)
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@

gnu/usr.bin/binutils-2.17/ld/lexsup.c

index 6df8c21..654edb5 100644 (file)
@@ -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;