diff options
author | 2012-08-30 18:31:37 +0000 | |
---|---|---|
committer | 2012-08-30 18:31:37 +0000 | |
commit | d483dc610bde4cd3b238a5b6e03de69fcea04942 (patch) | |
tree | 3a16c5471b0e5723fdeff4455bde379acc79f456 | |
parent | - import latest aldap.[ch] and ber.[ch] from ypldap (diff) | |
download | wireguard-openbsd-d483dc610bde4cd3b238a5b6e03de69fcea04942.tar.xz wireguard-openbsd-d483dc610bde4cd3b238a5b6e03de69fcea04942.zip |
On sparc64, we still need to pass -K PIC to the assembler when compiling PIE.
Found out the hard way by deraadt@.
ok kettenis@
-rw-r--r-- | gnu/gcc/gcc/config/sparc/openbsd64.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/gcc/gcc/config/sparc/openbsd64.h b/gnu/gcc/gcc/config/sparc/openbsd64.h index 33fa8f75a3c..dc419b97f8b 100644 --- a/gnu/gcc/gcc/config/sparc/openbsd64.h +++ b/gnu/gcc/gcc/config/sparc/openbsd64.h @@ -52,11 +52,19 @@ Boston, MA 02110-1301, USA. */ #undef NO_IMPLICIT_EXTERN_C #undef ASM_SPEC +#ifdef PIE_DEFAULT +#define ASM_SPEC "\ +%{v:-V} -s %{fpic|fPIC:-K PIC} %{!fno-pie: %{!p: %{!pg: -K PIC}}} \ +%{mlittle-endian:-EL} \ +%(asm_cpu) %(asm_arch) \ +" +#else #define ASM_SPEC "\ %{v:-V} -s %{fpic|fPIC|fpie|fPIE:-K PIC} \ %{mlittle-endian:-EL} \ %(asm_cpu) %(asm_arch) \ " +#endif /* Layout of source language data types. */ #undef WCHAR_TYPE |