Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu Default NetBSD to -msecure-plt now.



details:   https://anonhg.NetBSD.org/src/rev/84d53719fce0
branches:  trunk
changeset: 761880:84d53719fce0
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Feb 10 07:18:29 2011 +0000

description:
Default NetBSD to -msecure-plt now.

diffstat:

 gnu/dist/gcc4/gcc/config.gcc             |  3 +++
 gnu/dist/gcc4/gcc/config/rs6000/netbsd.h |  3 +++
 gnu/usr.bin/gcc4/arch/powerpc/tm.h       |  1 +
 3 files changed, 7 insertions(+), 0 deletions(-)

diffs (44 lines):

diff -r 63428a880ef8 -r 84d53719fce0 gnu/dist/gcc4/gcc/config.gcc
--- a/gnu/dist/gcc4/gcc/config.gcc      Thu Feb 10 06:42:17 2011 +0000
+++ b/gnu/dist/gcc4/gcc/config.gcc      Thu Feb 10 07:18:29 2011 +0000
@@ -1704,6 +1704,9 @@
            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 -r 63428a880ef8 -r 84d53719fce0 gnu/dist/gcc4/gcc/config/rs6000/netbsd.h
--- a/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h  Thu Feb 10 06:42:17 2011 +0000
+++ b/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h  Thu Feb 10 07:18:29 2011 +0000
@@ -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 -r 63428a880ef8 -r 84d53719fce0 gnu/usr.bin/gcc4/arch/powerpc/tm.h
--- a/gnu/usr.bin/gcc4/arch/powerpc/tm.h        Thu Feb 10 06:42:17 2011 +0000
+++ b/gnu/usr.bin/gcc4/arch/powerpc/tm.h        Thu Feb 10 07:18:29 2011 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index