patch-gcc_config_gcc 833 B

1234567891011121314151617181920
  1. $OpenBSD: patch-gcc_config_gcc,v 1.7 2016/03/09 18:45:52 jasper Exp $
  2. --- gcc/config.gcc.orig Sun Feb 24 16:51:55 2013
  3. +++ gcc/config.gcc Sun Mar 23 17:44:53 2014
  4. @@ -1174,6 +1174,7 @@ i[34567]86-*-openbsd2* | i[34567]86-*-openbsd3.[0123])
  5. use_collect2=yes
  6. ;;
  7. i[34567]86-*-openbsd*)
  8. + tm_defines="${tm_defines} PIE_DEFAULT=1"
  9. # needed to unconfuse gdb
  10. tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
  11. tm_file="${cpu_type}/${cpu_type}.h i386/unix.h i386/att.h dbxelf.h elfos.h"
  12. @@ -2069,6 +2070,7 @@ romp-*-openbsd*)
  13. # Nothing special
  14. ;;
  15. powerpc-*-openbsd*)
  16. + tm_defines="${tm_defines} PIE_DEFAULT=2"
  17. tm_file="rs6000/rs6000.h rs6000/openbsd1.h dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h openbsd.h ${tm_file}"
  18. tmake_file="${tmake_file} rs6000/t-ppcos rs6000/t-openbsd"
  19. tm_file="${tm_file} exec-stack.h"