artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a05b67b
)
Link -static -pie executables with rcrt0.o instead of crt0.o such that they
author
kettenis
<kettenis@openbsd.org>
Sat, 27 Dec 2014 20:38:14 +0000
(20:38 +0000)
committer
kettenis
<kettenis@openbsd.org>
Sat, 27 Dec 2014 20:38:14 +0000
(20:38 +0000)
self-relocate.
gnu/gcc/gcc/config/mips/openbsd.h
patch
|
blob
|
history
diff --git
a/gnu/gcc/gcc/config/mips/openbsd.h
b/gnu/gcc/gcc/config/mips/openbsd.h
index
64bafcc
..
d5f4812
100644
(file)
--- a/
gnu/gcc/gcc/config/mips/openbsd.h
+++ b/
gnu/gcc/gcc/config/mips/openbsd.h
@@
-137,7
+137,8
@@
Boston, MA 02110-1301, USA. */
/* As an elf system, we need crtbegin/crtend stuff. */
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "\
- %{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} %{!p:crt0%O%s}} \
+ %{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} \
+ %{!p:%{!static:crt0%O%s} %{static:%{pie:rcrt0%O%s} %{!pie:crt0%O%s}}}} \
crtbegin%O%s} %{shared:crtbeginS%O%s}"
#undef ENDFILE_SPEC
#define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}"