diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-12-30 19:26:39 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-12-30 19:26:39 +0000 |
commit | f07ea94e3586ffe0e8b20b31d970d476c0394b5a (patch) | |
tree | 360f7767b9905cde85e5596e92a73451cdc1e84b /gnu/gcc | |
parent | 08e9934e5378555bc60ace0d2f569fc3845624aa (diff) |
self-relocating crt0 bits for sh, and enable static pie by default. With some
archdep.h help from kettenis@
Diffstat (limited to 'gnu/gcc')
-rw-r--r-- | gnu/gcc/gcc/config/sh/openbsd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/gcc/gcc/config/sh/openbsd.h b/gnu/gcc/gcc/config/sh/openbsd.h index 20521a79c1e..cb665a2dd3d 100644 --- a/gnu/gcc/gcc/config/sh/openbsd.h +++ b/gnu/gcc/gcc/config/sh/openbsd.h @@ -90,7 +90,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}" |