summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils-2.17
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils-2.17')
-rw-r--r--gnu/usr.bin/binutils-2.17/ld/lexsup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/lexsup.c b/gnu/usr.bin/binutils-2.17/ld/lexsup.c
index 654edb52f27..6df8c2110f8 100644
--- a/gnu/usr.bin/binutils-2.17/ld/lexsup.c
+++ b/gnu/usr.bin/binutils-2.17/ld/lexsup.c
@@ -722,6 +722,8 @@ 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;