diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-07-30 19:24:25 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-07-30 19:24:25 +0000 |
commit | 5a26b2b035ed6b11b66dacedbfdec7ad0fa5e1fe (patch) | |
tree | d68eced550b8a05721f21136c17576bd103cb840 /gnu | |
parent | 925cf8201e88da41fe6565b8ab024ab63a336828 (diff) |
Fix attribute((init_priority)) on sparc and sparc64.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/gcc/gcc/config/sparc/openbsd.h | 4 | ||||
-rw-r--r-- | gnu/gcc/gcc/config/sparc/openbsd64.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gnu/gcc/gcc/config/sparc/openbsd.h b/gnu/gcc/gcc/config/sparc/openbsd.h index 9ca87ad5170..6a51ce81f8a 100644 --- a/gnu/gcc/gcc/config/sparc/openbsd.h +++ b/gnu/gcc/gcc/config/sparc/openbsd.h @@ -92,3 +92,7 @@ Boston, MA 02110-1301, USA. */ crtbegin%O%s} %{shared:crtbeginS%O%s}" #undef ENDFILE_SPEC #define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}" + +/* We use GNU ld so undefine this so that attribute((init_priority)) works. */ +#undef CTORS_SECTION_ASM_OP +#undef DTORS_SECTION_ASM_OP diff --git a/gnu/gcc/gcc/config/sparc/openbsd64.h b/gnu/gcc/gcc/config/sparc/openbsd64.h index a42463f9557..db2b173dbae 100644 --- a/gnu/gcc/gcc/config/sparc/openbsd64.h +++ b/gnu/gcc/gcc/config/sparc/openbsd64.h @@ -99,3 +99,7 @@ Boston, MA 02110-1301, USA. */ crtbegin%O%s} %{shared:crtbeginS%O%s}" #undef ENDFILE_SPEC #define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}" + +/* We use GNU ld so undefine this so that attribute((init_priority)) works. */ +#undef CTORS_SECTION_ASM_OP +#undef DTORS_SECTION_ASM_OP |