artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9c9024
)
Adjust ld semantics to make static PIE the default. Forgotten by pascal@.
author
kettenis
<kettenis@openbsd.org>
Mon, 27 Apr 2015 13:25:10 +0000
(13:25 +0000)
committer
kettenis
<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
patch
|
blob
|
history
diff --git
a/gnu/usr.bin/binutils-2.17/ld/lexsup.c
b/gnu/usr.bin/binutils-2.17/ld/lexsup.c
index
6df8c21
..
654edb5
100644
(file)
--- 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;