diff options
author | 2014-12-27 20:38:14 +0000 | |
---|---|---|
committer | 2014-12-27 20:38:14 +0000 | |
commit | 5face465832160b2f176f6b13ac6e2986e744aa6 (patch) | |
tree | 019ca6383fe6f9b75d20491273894c76cf401844 | |
parent | Static PIE for mips64. Still something not quite right as a full make build (diff) | |
download | wireguard-openbsd-5face465832160b2f176f6b13ac6e2986e744aa6.tar.xz wireguard-openbsd-5face465832160b2f176f6b13ac6e2986e744aa6.zip |
Link -static -pie executables with rcrt0.o instead of crt0.o such that they
self-relocate.
-rw-r--r-- | gnu/gcc/gcc/config/mips/openbsd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/gcc/gcc/config/mips/openbsd.h b/gnu/gcc/gcc/config/mips/openbsd.h index 64bafcc234a..d5f4812b260 100644 --- 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}" |