diff options
| author | matt <matt@NetBSD.org> | 2011-02-10 07:18:29 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 2011-02-10 07:18:29 +0000 |
| commit | eff3b5d5c391ffb05b30958208656dce70cb2b2d (patch) | |
| tree | 0ce5c0e9876ea2f2a64d6251be746acda538f785 /gnu | |
| parent | d0b18420fdf360b43151c08f6d99a641f46259f9 (diff) | |
Default NetBSD to -msecure-plt now.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/dist/gcc4/gcc/config.gcc | 3 | ||||
| -rw-r--r-- | gnu/dist/gcc4/gcc/config/rs6000/netbsd.h | 3 | ||||
| -rw-r--r-- | gnu/usr.bin/gcc4/arch/powerpc/tm.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/gnu/dist/gcc4/gcc/config.gcc b/gnu/dist/gcc4/gcc/config.gcc index 17020ea2f77..c4bc8bfdd33 100644 --- a/gnu/dist/gcc4/gcc/config.gcc +++ b/gnu/dist/gcc4/gcc/config.gcc @@ -1704,6 +1704,9 @@ powerpc*-*-netbsd*) tmake_file="${tmake_file} rs6000/t-netbsd" ;; esac + if test x${enable_secureplt} != xno; then + tm_file="rs6000/secureplt.h ${tm_file}" + fi extra_options="${extra_options} rs6000/sysv4.opt rs6000/linux64.opt" ;; powerpc-*-chorusos*) diff --git a/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h b/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h index c704d442471..f3b70af7d68 100644 --- a/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h +++ b/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h @@ -44,6 +44,8 @@ builtin_define ("__powerpc__"); \ builtin_assert ("cpu=powerpc"); \ builtin_assert ("machine=powerpc"); \ + if (TARGET_SECURE_PLT) \ + builtin_define ("_SECURE_PLT"); \ } \ while (0) @@ -111,6 +113,7 @@ #undef SUBTARGET_EXTRA_SPECS #define SUBTARGET_EXTRA_SPECS \ + { "cc1_secure_plt_default", CC1_SECURE_PLT_DEFAULT_SPEC }, \ { "netbsd_link_spec", NETBSD_LINK_SPEC_ELF }, \ { "netbsd_entry_point", NETBSD_ENTRY_POINT }, \ { "netbsd_endfile_spec", NETBSD_ENDFILE_SPEC }, diff --git a/gnu/usr.bin/gcc4/arch/powerpc/tm.h b/gnu/usr.bin/gcc4/arch/powerpc/tm.h index 7d9b6efa139..37351d585ad 100644 --- a/gnu/usr.bin/gcc4/arch/powerpc/tm.h +++ b/gnu/usr.bin/gcc4/arch/powerpc/tm.h @@ -9,6 +9,7 @@ #endif #ifdef IN_GCC # include "options.h" +# include "config/rs6000/secureplt.h" # include "config/rs6000/rs6000.h" # include "config/dbxelf.h" # include "config/elfos.h" |
