- unbreak g77 on mips64* by defining PIE_DEFAULT in the right place.
ok pascal@
This commit is contained in:
parent
85ed783ce4
commit
e233c978fc
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-gcc_config_gcc,v 1.1 2012/09/01 00:00:32 pascal Exp $
|
||||
--- gcc/config.gcc.orig Sat May 22 18:18:42 2010
|
||||
+++ gcc/config.gcc Fri Aug 31 18:22:31 2012
|
||||
$OpenBSD: patch-gcc_config_gcc,v 1.2 2012/12/12 21:54:41 jasper Exp $
|
||||
--- gcc/config.gcc.orig Sat May 22 10:18:42 2010
|
||||
+++ gcc/config.gcc Wed Dec 12 05:41:08 2012
|
||||
@@ -1184,6 +1184,7 @@ i[34567]86-*-openbsd*)
|
||||
gnu_ld=yes
|
||||
;;
|
||||
@ -9,15 +9,15 @@ $OpenBSD: patch-gcc_config_gcc,v 1.1 2012/09/01 00:00:32 pascal Exp $
|
||||
tm_file="i386/biarch64.h i386/i386.h i386/unix.h i386/att.h dbxelf.h elfos.h openbsd.h openbsd-libpthread.h i386/x86-64.h i386/openbsd64.h"
|
||||
tm_file="${tm_file} exec-stack.h"
|
||||
tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
|
||||
@@ -1935,7 +1936,7 @@ mips*-*-linux*) # Linux MIPS, either endian.
|
||||
tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux"
|
||||
;;
|
||||
mips*-*-openbsd*)
|
||||
- target_cpu_default="MASK_GAS|MASK_ABICALLS"
|
||||
+ target_cpu_default="MASK_GAS|MASK_ABICALLS PIE_DEFAULT=1"
|
||||
@@ -1939,7 +1940,7 @@ mips*-*-openbsd*)
|
||||
tm_file="elfos.h ${tm_file}"
|
||||
case $machine in
|
||||
mips64*-*)
|
||||
- tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_64"
|
||||
+ tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_64 PIE_DEFAULT=1"
|
||||
tmake_file="t-openbsd mips/t-openbsd64"
|
||||
;;
|
||||
mips*-*)
|
||||
@@ -2460,6 +2461,7 @@ sparc-*-openbsd*)
|
||||
use_collect2=yes
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user