diff options
author | 2014-12-22 16:04:35 +0000 | |
---|---|---|
committer | 2014-12-22 16:04:35 +0000 | |
commit | a8b12c103e1051d5d1e40d0250af2fe2a2d9dac6 (patch) | |
tree | 3345c35ec6180d8971ccfa760202d59fd84b9b25 | |
parent | sync (diff) | |
download | wireguard-openbsd-a8b12c103e1051d5d1e40d0250af2fe2a2d9dac6.tar.xz wireguard-openbsd-a8b12c103e1051d5d1e40d0250af2fe2a2d9dac6.zip |
Link -static -pie executables with rcrt0.o instead of crt0.o such that they
self-relocate.
Based on a diff for amd64 from kurt@
-rw-r--r-- | gnu/gcc/gcc/config/sparc/openbsd64.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/gcc/gcc/config/sparc/openbsd64.h b/gnu/gcc/gcc/config/sparc/openbsd64.h index db2b173dbae..00480796a2a 100644 --- a/gnu/gcc/gcc/config/sparc/openbsd64.h +++ b/gnu/gcc/gcc/config/sparc/openbsd64.h @@ -95,7 +95,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}" |