summaryrefslogtreecommitdiff
path: root/libssp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-10-30 09:35:42 +0000
committer <>2015-01-09 11:51:27 +0000
commitc27a97d04853380f1e80525391b3f0d156ed4c84 (patch)
tree68ffaade7c605bc80cffa18360799c98a810976f /libssp
parent6af3fdec2262dd94954acc5e426ef71cbd4521d3 (diff)
downloadgcc-tarball-c27a97d04853380f1e80525391b3f0d156ed4c84.tar.gz
Imported from /home/lorry/working-area/delta_gcc-tarball/gcc-4.9.2.tar.bz2.gcc-4.9.2
Diffstat (limited to 'libssp')
-rw-r--r--libssp/ChangeLog49
-rwxr-xr-xlibssp/configure26
-rw-r--r--libssp/ssp.c4
-rw-r--r--libssp/strncat-chk.c6
4 files changed, 59 insertions, 26 deletions
diff --git a/libssp/ChangeLog b/libssp/ChangeLog
index 5dcf0df24b..dbf37536da 100644
--- a/libssp/ChangeLog
+++ b/libssp/ChangeLog
@@ -1,24 +1,49 @@
-2013-04-11 Release Manager
+2014-10-30 Release Manager
- * GCC 4.7.3 released.
+ * GCC 4.9.2 released.
-2012-09-20 Release Manager
+2014-07-16 Release Manager
- * GCC 4.7.2 released.
+ * GCC 4.9.1 released.
-2012-06-14 Release Manager
+2014-04-22 Release Manager
- * GCC 4.7.1 released.
+ * GCC 4.9.0 released.
-2012-05-31 Benjamin Kosnik <bkoz@redhat.com>
+2013-12-07 Jakub Jelinek <jakub@redhat.com>
- PR libstdc++/52007
- * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
- * configure: Regenerated.
+ * ssp.c (fail): Avoid -Wformat-security warning.
-2012-03-22 Release Manager
+2013-09-20 Alan Modra <amodra@gmail.com>
- * GCC 4.7.0 released.
+ * configure: Regenerate.
+
+2013-02-06 Richard Sandiford <rdsandiford@googlemail.com>
+
+ Revert previous patch.
+
+2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
+
+ Update copyright years.
+
+2013-01-15 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ PR 55982
+ * strncat-chk.c (__strncat_chk): Fix loop unroll.
+
+2012-09-14 David Edelsohn <dje.gcc@gmail.com>
+
+ * configure: Regenerated.
+
+2012-05-29 Benjamin Kosnik <bkoz@redhat.com>
+
+ PR libstdc++/51007
+ * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
+ * configure: Regenerated.
+
+2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ * configure: Regenerated.
2011-11-21 Andreas Tobler <andreast@fgznet.ch>
diff --git a/libssp/configure b/libssp/configure
index 78abc70cdc..b26c0b3352 100755
--- a/libssp/configure
+++ b/libssp/configure
@@ -6385,7 +6385,7 @@ ia64-*-hpux*)
rm -rf conftest*
;;
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
# Find out which ABI we are using.
echo 'int i;' > conftest.$ac_ext
@@ -6401,9 +6401,19 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
LD="${LD-ld} -m elf_i386_fbsd"
;;
x86_64-*linux*)
- LD="${LD-ld} -m elf_i386"
+ case `/usr/bin/file conftest.o` in
+ *x86-64*)
+ LD="${LD-ld} -m elf32_x86_64"
+ ;;
+ *)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ esac
+ ;;
+ powerpc64le-*linux*)
+ LD="${LD-ld} -m elf32lppclinux"
;;
- ppc64-*linux*|powerpc64-*linux*)
+ powerpc64-*linux*)
LD="${LD-ld} -m elf32ppclinux"
;;
s390x-*linux*)
@@ -6422,7 +6432,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
x86_64-*linux*)
LD="${LD-ld} -m elf_x86_64"
;;
- ppc*-*linux*|powerpc*-*linux*)
+ powerpcle-*linux*)
+ LD="${LD-ld} -m elf64lppc"
+ ;;
+ powerpc-*linux*)
LD="${LD-ld} -m elf64ppc"
;;
s390*-*linux*|s390*-*tpf*)
@@ -7677,6 +7690,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
# AIX 5 now supports IA64 processor
lt_prog_compiler_static='-Bstatic'
fi
+ lt_prog_compiler_pic='-fPIC'
;;
amigaos*)
@@ -10650,7 +10664,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10653 "configure"
+#line 10667 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10756,7 +10770,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10759 "configure"
+#line 10773 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
diff --git a/libssp/ssp.c b/libssp/ssp.c
index aaa5a322c8..96adf17ce3 100644
--- a/libssp/ssp.c
+++ b/libssp/ssp.c
@@ -1,5 +1,5 @@
/* Stack protector support.
- Copyright (C) 2005, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2005-2013 Free Software Foundation, Inc.
This file is part of GCC.
@@ -136,7 +136,7 @@ fail (const char *msg1, size_t msg1len, const char *msg3)
#ifdef HAVE_SYSLOG_H
/* Only send the error to syslog if there was no tty available. */
else
- syslog (LOG_CRIT, msg3);
+ syslog (LOG_CRIT, "%s", msg3);
#endif /* HAVE_SYSLOG_H */
/* Try very hard to exit. Note that signals may be blocked preventing
diff --git a/libssp/strncat-chk.c b/libssp/strncat-chk.c
index d8056e8433..6ab41ffbc6 100644
--- a/libssp/strncat-chk.c
+++ b/libssp/strncat-chk.c
@@ -87,12 +87,6 @@ __strncat_chk (char *__restrict__ dest, const char *__restrict__ src,
*++dest = c;
if (c == '\0')
return s;
- if (slen-- == 0)
- __chk_fail ();
- c = *src++;
- *++dest = c;
- if (c == '\0')
- return s;
} while (--n4 > 0);
n &= 3;
}