diff options
author | Andreas Tobler <andreast@gcc.gnu.org> | 2019-09-30 09:54:52 +0200 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2019-09-30 09:54:52 +0200 |
commit | 15bbad92434a184a0baac0c93c7111e6e7fcd9c2 (patch) | |
tree | 993759c721c79e6afaba2999f4619df18d093f4a /gcc/config.gcc | |
parent | 6a556ba414832a4ec9b1ea66d2a40940ba74706e (diff) | |
download | gcc-15bbad92434a184a0baac0c93c7111e6e7fcd9c2.zip gcc-15bbad92434a184a0baac0c93c7111e6e7fcd9c2.tar.gz gcc-15bbad92434a184a0baac0c93c7111e6e7fcd9c2.tar.bz2 |
config.gcc: Use the secure-plt on FreeBSD 13 and upwards for 32-bit PowerPC.
2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
* config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
32-bit PowerPC.
Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
* config/rs6000/t-freebsd64: Make use of the above define and build
the 32-bit libraries with secure-plt.
From-SVN: r276295
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 69d0a02..481bc95 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2687,8 +2687,14 @@ powerpc*-*-freebsd*) tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h" tmake_file="${tmake_file} rs6000/t-freebsd64" extra_options="${extra_options} rs6000/linux64.opt" + if test $fbsd_major -ge 13; then + tm_defines="${tm_defines} TARGET_FREEBSD32_SECURE_PLT=1" + fi ;; *) + if test $fbsd_major -ge 13; then + tm_file="rs6000/secureplt.h ${tm_file}" + fi tm_file="${tm_file} rs6000/freebsd.h" ;; esac |