summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/config
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-12-09 17:57:18 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-12-09 19:50:14 +0800
commit5e8c1cf25beccac1d22d10dc866912394f42771b (patch)
treeee16b70f804484dc8e434e647e699ab50da2620f /binutils-2.25/config
parent8eebd7953384e6662ca926b003f2cdda8ccd3ee5 (diff)
downloadtoolchain_binutils-5e8c1cf25beccac1d22d10dc866912394f42771b.tar.gz
toolchain_binutils-5e8c1cf25beccac1d22d10dc866912394f42771b.tar.bz2
toolchain_binutils-5e8c1cf25beccac1d22d10dc866912394f42771b.zip
[2.25] sync to a30720e3e633f275250e26f85ccae5dbdddfb6c6
local patches will be re-applied later commit a30720e3e633f275250e26f85ccae5dbdddfb6c6 Author: Alan Modra <amodra@gmail.com> Date: Wed Nov 19 10:30:16 2014 +1030 daily update Change-Id: Ieb2a3f4dd2ecb289ac5305ff08d428b2847494ab
Diffstat (limited to 'binutils-2.25/config')
-rw-r--r--binutils-2.25/config/ChangeLog45
-rw-r--r--binutils-2.25/config/bootstrap-asan.mk1
-rw-r--r--binutils-2.25/config/bootstrap-lto.mk6
-rw-r--r--binutils-2.25/config/bootstrap-ubsan.mk3
-rw-r--r--binutils-2.25/config/mt-nios2-elf5
-rw-r--r--binutils-2.25/config/picflag.m43
-rw-r--r--binutils-2.25/config/plugins.m426
7 files changed, 75 insertions, 14 deletions
diff --git a/binutils-2.25/config/ChangeLog b/binutils-2.25/config/ChangeLog
index e3f6f456..4e74bea3 100644
--- a/binutils-2.25/config/ChangeLog
+++ b/binutils-2.25/config/ChangeLog
@@ -1,3 +1,44 @@
+2014-08-19 Alan Modra <amodra@gmail.com>
+
+ * plugins.m4 (AC_PLUGINS): If plugins are enabled, add -ldl to
+ LIBS via AC_SEARCH_LIBS.
+
+2014-08-14 Alan Modra <amodra@gmail.com>
+
+ * plugins.m4: Test for dlfcn.h or windows.h here to set default
+ for --enable-plugins. Report error if someone tries to enable
+ plugins on a host we don't support.
+
+2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
+
+ * mt-nios2-elf: New file.
+
+2013-12-07 Mike Frysinger <vapier@gentoo.org>
+
+ * acinclude.m4: Remove +x file mode.
+
+2013-11-29 Marek Polacek <polacek@redhat.com>
+
+ * bootstrap-ubsan.mk (POSTSTAGE1_LDFLAGS): Remove -lpthread -ldl.
+ Add -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/.
+
+2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
+
+ * bootstrap-asan.mk (POSTSTAGE1_LDFLAGS): Add
+ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/.
+
+2013-11-19 Marek Polacek <polacek@redhat.com>
+
+ * bootstrap-ubsan.mk (POSTSTAGE1_LDFLAGS): Add -ldl.
+
+2013-11-18 Jan Hubicka <jh@suse.cz>
+
+ * bootstrap-lto.mk: Use -ffat-lto-objects.
+
+2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
+
+ * picflag.m4 (m68k-*-*): Use default PIC flag.
+
2013-09-29 Iain Sandoe <iain@codesourcery.com>
* mh-darwin (BOOT_CFLAGS): Only add -mdynamic-no-pic for m32 hosts.
@@ -18,6 +59,10 @@
* bootstrap-asan.mk (POSTSTAGE1_LDFLAGS): Add
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.
+2013-01-23 Shenghou Ma <minux.ma@gmail.com>
+
+ * isl.m4: don't echo $CFLAGS for ISL_CHECK_VERSION.
+
2013-01-15 Richard Biener <rguenther@suse.de>
PR other/55973
diff --git a/binutils-2.25/config/bootstrap-asan.mk b/binutils-2.25/config/bootstrap-asan.mk
index e3f34f5a..fbef0212 100644
--- a/binutils-2.25/config/bootstrap-asan.mk
+++ b/binutils-2.25/config/bootstrap-asan.mk
@@ -3,5 +3,6 @@
STAGE2_CFLAGS += -fsanitize=address
STAGE3_CFLAGS += -fsanitize=address
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
+ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs
diff --git a/binutils-2.25/config/bootstrap-lto.mk b/binutils-2.25/config/bootstrap-lto.mk
index bbd3515e..27bad152 100644
--- a/binutils-2.25/config/bootstrap-lto.mk
+++ b/binutils-2.25/config/bootstrap-lto.mk
@@ -1,5 +1,7 @@
# This option enables LTO for stage2 and stage3.
+# FIXME: Our build system is not yet able to use gcc-ar wrapper, so we need
+# to go with -ffat-lto-objects.
-STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1
-STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1
+STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects
+STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects
STAGEprofile_CFLAGS += -fno-lto
diff --git a/binutils-2.25/config/bootstrap-ubsan.mk b/binutils-2.25/config/bootstrap-ubsan.mk
index 2d21e832..d2615e8f 100644
--- a/binutils-2.25/config/bootstrap-ubsan.mk
+++ b/binutils-2.25/config/bootstrap-ubsan.mk
@@ -2,6 +2,7 @@
STAGE2_CFLAGS += -fsanitize=undefined
STAGE3_CFLAGS += -fsanitize=undefined
-POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lpthread \
+POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan \
+ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs
diff --git a/binutils-2.25/config/mt-nios2-elf b/binutils-2.25/config/mt-nios2-elf
new file mode 100644
index 00000000..1dee7c64
--- /dev/null
+++ b/binutils-2.25/config/mt-nios2-elf
@@ -0,0 +1,5 @@
+# We build library code with -mno-gpopt so that it can be linked with
+# larger executables with small-data sections that exceed the 16-bit
+# offset range for GP-relative addressing.
+CFLAGS_FOR_TARGET += -mno-gpopt
+CXXFLAGS_FOR_TARGET += -mno-gpopt
diff --git a/binutils-2.25/config/picflag.m4 b/binutils-2.25/config/picflag.m4
index 2ee5cd07..3bcdbf1d 100644
--- a/binutils-2.25/config/picflag.m4
+++ b/binutils-2.25/config/picflag.m4
@@ -50,9 +50,6 @@ case "${$2}" in
i[[34567]]86-*-* | x86_64-*-*)
$1=-fpic
;;
- m68k-*-*)
- $1=-fpic
- ;;
# FIXME: Override -fPIC default in libgcc only?
sh-*-linux* | sh[[2346lbe]]*-*-linux*)
$1=-fpic
diff --git a/binutils-2.25/config/plugins.m4 b/binutils-2.25/config/plugins.m4
index 7ee8412a..513c690e 100644
--- a/binutils-2.25/config/plugins.m4
+++ b/binutils-2.25/config/plugins.m4
@@ -1,11 +1,21 @@
AC_DEFUN([AC_PLUGINS],
[
-AC_ARG_ENABLE([plugins],
-AS_HELP_STRING([--enable-plugins], [Enable support for plugins (defaults no)]),
-[case "${enableval}" in
- yes | "") plugins=yes ;;
- no) plugins=no ;;
- *) plugins=yes ;;
- esac],
-[plugins=no])
+ maybe_plugins=no
+ AC_CHECK_HEADERS([dlfcn.h], [maybe_plugins=yes], [], [AC_INCLUDES_DEFAULT])
+ AC_CHECK_HEADERS([windows.h], [maybe_plugins=yes], [], [AC_INCLUDES_DEFAULT])
+
+ AC_ARG_ENABLE([plugins],
+ AS_HELP_STRING([--enable-plugins], [Enable support for plugins]),
+ [case "${enableval}" in
+ no) plugins=no ;;
+ *) plugins=yes
+ if test "$maybe_plugins" != "yes" ; then
+ AC_MSG_ERROR([Building with plugin support requires a host that supports dlopen.])
+ fi ;;
+ esac],
+ [plugins=$maybe_plugins]
+ )
+ if test "$plugins" = "yes"; then
+ AC_SEARCH_LIBS([dlopen], [dl])
+ fi
])