btrev43123 adds 3 changesets to branch 'master'
old head: aa5e6148654241454155fd352641bf4b97d53750
new head: 35041506a03bcbe38eafdd7cbffba4111c838fdc
overview:
http://cgit.haiku-os.org/buildtools/log/?qt=range&q=35041506a03b+%5Eaa5e61486542
----------------------------------------------------------------------------
233c0fb351dc: import binutils 2.27
8b2ef03baf69: import binutils 2.28.1
35041506a03b: Merge binutils 2.28.1
[ Jérôme Duval <jerome.duval@xxxxxxxxx> ]
----------------------------------------------------------------------------
5774 files changed, 413302 insertions(+), 151517 deletions(-)
binutils/ChangeLog | 158 +
binutils/Makefile.def | 2 +
binutils/Makefile.in | 85 +-
binutils/Makefile.tpl | 30 +-
binutils/bfd/ChangeLog | 4485 +-
binutils/bfd/ChangeLog-2015 | 4247 ++
binutils/bfd/ChangeLog-2016 | 4276 ++
binutils/bfd/MAINTAINERS | 2 +-
binutils/bfd/Makefile.am | 49 +-
binutils/bfd/Makefile.in | 127 +-
binutils/bfd/PORTING | 2 +-
binutils/bfd/README | 2 +-
binutils/bfd/TODO | 2 +-
binutils/bfd/acinclude.m4 | 2 +-
binutils/bfd/aclocal.m4 | 74 +-
binutils/bfd/aix386-core.c | 2 +-
binutils/bfd/aix5ppc-core.c | 2 +-
binutils/bfd/aout-adobe.c | 24 +-
binutils/bfd/aout-arm.c | 12 +-
binutils/bfd/aout-cris.c | 25 +-
binutils/bfd/aout-ns32k.c | 2 +-
binutils/bfd/aout-sparcle.c | 2 +-
binutils/bfd/aout-target.h | 38 +-
binutils/bfd/aout-tic30.c | 43 +-
binutils/bfd/aout0.c | 2 +-
binutils/bfd/aout32.c | 2 +-
binutils/bfd/aout64.c | 2 +-
binutils/bfd/aoutf1.h | 33 +-
binutils/bfd/aoutx.h | 218 +-
binutils/bfd/arc-got.h | 523 +
binutils/bfd/arc-plt.def | 94 +
binutils/bfd/arc-plt.h | 196 +
binutils/bfd/archive.c | 99 +-
binutils/bfd/archive64.c | 23 +-
binutils/bfd/archures.c | 31 +-
binutils/bfd/armnetbsd.c | 2 +-
binutils/bfd/bfd-in.h | 61 +-
binutils/bfd/bfd-in2.h | 249 +-
binutils/bfd/bfd.c | 115 +-
binutils/bfd/bfd.m4 | 2 +-
binutils/bfd/bfdio.c | 10 +-
binutils/bfd/bfdwin.c | 5 +-
binutils/bfd/binary.c | 12 +-
binutils/bfd/bout.c | 31 +-
binutils/bfd/cache.c | 15 +-
binutils/bfd/cf-i386lynx.c | 2 +-
binutils/bfd/cf-sparclynx.c | 2 +-
binutils/bfd/cisco-core.c | 2 +-
binutils/bfd/coff-alpha.c | 84 +-
binutils/bfd/coff-apollo.c | 2 +-
binutils/bfd/coff-arm.c | 67 +-
binutils/bfd/coff-aux.c | 2 +-
binutils/bfd/coff-bfd.c | 2 +-
binutils/bfd/coff-bfd.h | 2 +-
binutils/bfd/coff-go32.c | 2 +-
binutils/bfd/coff-h8300.c | 92 +-
binutils/bfd/coff-h8500.c | 28 +-
binutils/bfd/coff-i386.c | 2 +-
binutils/bfd/coff-i860.c | 7 +-
binutils/bfd/coff-i960.c | 31 +-
binutils/bfd/coff-ia64.c | 2 +-
binutils/bfd/coff-m68k.c | 2 +-
binutils/bfd/coff-m88k.c | 2 +-
binutils/bfd/coff-mcore.c | 26 +-
binutils/bfd/coff-mips.c | 36 +-
binutils/bfd/coff-ppc.c | 60 +-
binutils/bfd/coff-rs6000.c | 45 +-
binutils/bfd/coff-sh.c | 90 +-
binutils/bfd/coff-sparc.c | 2 +-
binutils/bfd/coff-stgo32.c | 2 +-
binutils/bfd/coff-svm68k.c | 2 +-
binutils/bfd/coff-tic30.c | 2 +-
binutils/bfd/coff-tic4x.c | 9 +-
binutils/bfd/coff-tic54x.c | 9 +-
binutils/bfd/coff-tic80.c | 27 +-
binutils/bfd/coff-u68k.c | 2 +-
binutils/bfd/coff-w65.c | 27 +-
binutils/bfd/coff-we32k.c | 2 +-
binutils/bfd/coff-x86_64.c | 9 +-
binutils/bfd/coff-z80.c | 28 +-
binutils/bfd/coff-z8k.c | 56 +-
binutils/bfd/coff64-rs6000.c | 44 +-
binutils/bfd/coffcode.h | 58 +-
binutils/bfd/coffgen.c | 34 +-
binutils/bfd/cofflink.c | 138 +-
binutils/bfd/coffswap.h | 14 +-
binutils/bfd/compress.c | 10 +-
binutils/bfd/config.bfd | 133 +-
binutils/bfd/config.in | 6 +-
binutils/bfd/configure | 2942 +-
binutils/bfd/configure.ac | 703 +-
binutils/bfd/configure.com | 2 +-
binutils/bfd/configure.host | 2 +-
binutils/bfd/corefile.c | 2 +-
binutils/bfd/cpu-aarch64.c | 10 +-
binutils/bfd/cpu-alpha.c | 2 +-
binutils/bfd/cpu-arc.c | 21 +-
binutils/bfd/cpu-arm.c | 40 +-
binutils/bfd/cpu-avr.c | 2 +-
[ *** stats truncated: 5675 lines dropped *** ]
############################################################################
Commit: 233c0fb351dc61d3bbde7adb18f54a7934c923a9
URL: http://cgit.haiku-os.org/buildtools/commit/?id=233c0fb351dc
Author: Jérôme Duval <jerome.duval@xxxxxxxxx>
Date: Mon Oct 10 14:55:00 2016 UTC
import binutils 2.27
----------------------------------------------------------------------------
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 514c873..699c656 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,137 @@
+2016-06-28 Walter Lee <walt@xxxxxxxxxx>
+
+ * configure.ac (tilepro-*-*): Add gdb to noconfigdirs.
+ * configure: Regenerate.
+
+2016-05-28 Alan Modra <amodra@xxxxxxxxx>
+
+ * Makefile.tpl (configure): Depend on m4 files included.
+ * Makefile.in: Regenerate.
+
+2016-05-27 Nick Clifton <nickc@xxxxxxxxxx>
+
+ * config.guess (Alpha OSF1): Fix typo introduced during the most
+ recent synchronization update.
+
+2016-05-23 Nick Clifton <nickc@xxxxxxxxxx>
+
+ * Import these patches from the gcc mainline:
+
+ 2016-05-16 Jakub Sejdak <jakub.sejdak@xxxxxxxxxxx>
+
+ * config.guess: Import version 2016-04-02 (newest).
+ * config.sub: Import version 2016-05-10 (newest).
+
+2016-04-19 Nick Clifton <nickc@xxxxxxxxxx>
+
+ * Import this patch from the GCC mainline:
+
+ 2016-04-13 Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx>
+
+ PR bootstrap/70173
+ * Makefile.tpl (local-distclean): Delete the libcc1, gnattools,
+ and gotools directories. Delete the stage_final file.
+ * Makefile.in: Regenerate.
+
+2016-03-17 Cary Coutant <ccoutant@xxxxxxxxx>
+
+ * configure.ac: Add mips and s390 to the gold target check.
+ * configure: Regenerate.
+
+2016-02-10 Nick Clifton <nickc@xxxxxxxxxx>
+
+ Import these patches from the GCC mainline:
+
+ 2016-01-12 Andris Pavenis <andris.pavenis@xxxxxx>
+
+ * configure.ac: Enable LTO for DJGPP
+ * configure: Regenerate
+
+ 2016-01-24 Mikhail Maltsev <maltsevm@xxxxxxxxx>
+
+ PR bootstrap/69329
+ * Makefile.tpl (BASE_FLAGS_TO_PASS): Add LSAN_OPTIONS.
+ * Makefile.in: Regenerate.
+
+ 2016-01-25 Aditya Kumar <aditya.k7@xxxxxxxxxxx>
+ Sebastian Pop <s.pop@xxxxxxxxxxx>
+
+ * Makefile.in: Regenerate.
+ * Makefile.tpl: Export ISLVER.
+ * configure: Regenerate.
+ * config/isl.m4: Detect isl-0.15.
+
+ 2016-01-29 Sebastian Pop <s.pop@xxxxxxxxxxx>
+
+ * config/isl.m4: Add comments about isl-0.16.
+ * configure: Regenerate.
+
+2016-01-12 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+
+ Sync with GCC
+ 2015-11-26 David Edelsohn <dje.gcc@xxxxxxxxx>
+
+ * m4/libtool.m4 (export_symbols_cmds) [AIX]: Add global TLS "L"
+ symbols.
+
+ 2016-01-12 Bernd Edlinger <bernd.edlinger@xxxxxxxxxx>
+
+ PR bootstrap/69134
+ * Makefile.def (mpfr): Disable assembler.
+ * Makefile.in: Regenerate.
+
+2016-01-11 Nick Clifton <nickc@xxxxxxxxxx>
+
+ Import the following changes from the GCC mainline:
+
+ 2015-11-13 Tsvetkova Alexandra <aleksandra.tsvetkova@xxxxxxxxx>
+
+ * configure.ac: Enable libmpx by default.
+ * configure: Regenerated.
+
+ 2015-11-19 Martin Liska <mliska@xxxxxxx>
+
+ * .gitignore: Add .clang-format to ignored files.
+ * Makefile.tpl: Add clang-format.
+ * Makefile.in: Regenerate.
+
+ 2015-12-01 Andreas Tobler <andreast@xxxxxxxxxxx>
+
+ PR libffi/65726
+ * Makefile.def (lang_env_dependencies): Make libffi depend
+ on cxx.
+ * Makefile.in: Regenerate.
+
+ 2015-12-02 Ian Lance Taylor <iant@xxxxxxxxxx>
+
+ PR go/66147
+ * Makefile.tpl (HOST_EXPORTS): Add XGCC_FLAGS_FOR_TARGET.
+ * Makefile.in: Regenerate.
+
+ 2015-12-17 Nathan Sidwell <nathan@xxxxxxx>
+
+ * config/isl.m4 (ISL_CHECK_VERSION): Add gmp libs.
+ * configure: Regenerate.
+
+ 2015-12-17 Sebastian Pop <s.pop@xxxxxxxxxxx>
+
+ * Makefile.in: Replace ISL with isl.
+ * Makefile.tpl: Same.
+ * config/isl.m4: Same.
+ * configure.ac: Same.
+ * contrib/download_prerequisites: Same.
+ * configure: Regenerate.
+
+ 2016-01-01 Ben Elliston <bje@xxxxxxx>
+
+ * config.guess: Import version 2016-01-01.
+ * config.sub: Likewise.
+
+2015-11-20 Tristan Gingold <gingold@xxxxxxxxxxx>
+
+ * configure.ac: Add aarch64-*-darwin* and arm-*-darwin*.
+ * configure: Regenerate.
+
2015-10-21 Nick Clifton <nickc@xxxxxxxxxx>
PR gas/19109
diff --git a/binutils/Makefile.def b/binutils/Makefile.def
index 8b4dad9..ea8453e 100644
--- a/binutils/Makefile.def
+++ b/binutils/Makefile.def
@@ -59,6 +59,7 @@ host_modules= { module= gmp; lib_path=.libs; bootstrap=true;
target="none-${host_vendor}-${host_os}"; };
host_modules= { module= mpfr; lib_path=.libs; bootstrap=true;
extra_configure_flags='--disable-shared
@extra_mpfr_configure_flags@';
+ extra_make_flags='AM_CFLAGS="-DNO_ASM"';
no_install= true; };
host_modules= { module= mpc; lib_path=.libs; bootstrap=true;
extra_configure_flags='--disable-shared
@extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@';
@@ -534,6 +535,7 @@ dependencies = { module=all-m4; on=all-build-texinfo; };
// on libgcc and newlib/libgloss.
lang_env_dependencies = { module=libjava; cxx=true; };
lang_env_dependencies = { module=libitm; cxx=true; };
+lang_env_dependencies = { module=libffi; cxx=true; };
lang_env_dependencies = { module=libcilkrts; cxx=true; };
lang_env_dependencies = { module=liboffloadmic; cxx=true; };
lang_env_dependencies = { module=newlib; no_c=true; };
diff --git a/binutils/Makefile.in b/binutils/Makefile.in
index bc2bae6..cb0136e 100644
--- a/binutils/Makefile.in
+++ b/binutils/Makefile.in
@@ -3,7 +3,8 @@
#
# Makefile for directory with subdirs to build.
# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011
+# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+# 2011, 2012, 2013, 2014, 2015, 2016
# Free Software Foundation
#
# This file is free software; you can redistribute it and/or modify
@@ -222,8 +223,10 @@ HOST_EXPORTS = \
GMPINC="$(HOST_GMPINC)"; export GMPINC; \
ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
ISLINC="$(HOST_ISLINC)"; export ISLINC; \
+ ISLVER="$(HOST_ISLVER)"; export ISLVER; \
LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
+ XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export
XGCC_FLAGS_FOR_TARGET; \
@if gcc-bootstrap
$(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed
's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
@endif gcc-bootstrap
@@ -311,9 +314,10 @@ NORMAL_TARGET_EXPORTS = \
HOST_GMPLIBS = @gmplibs@
HOST_GMPINC = @gmpinc@
-# Where to find ISL
+# Where to find isl
HOST_ISLLIBS = @isllibs@
HOST_ISLINC = @islinc@
+HOST_ISLVER = @islver@
# Where to find libelf
HOST_LIBELFLIBS = @libelflibs@
@@ -788,7 +792,8 @@ BASE_FLAGS_TO_PASS = \
$(CXX_FOR_TARGET_FLAG_TO_PASS) \
"TFLAGS=$(TFLAGS)" \
"CONFIG_SHELL=$(SHELL)" \
- "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
+ "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
+ $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
# We leave this in just in case, but it is not needed anymore.
RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
@@ -2312,7 +2317,7 @@ local-clean:
local-distclean:
-rm -f Makefile config.status config.cache mh-frag mt-frag
- -rm -f maybedep.tmp serdep.tmp
+ -rm -f maybedep.tmp serdep.tmp stage_final
-if [ "$(TARGET_SUBDIR)" != "." ]; then \
rm -rf $(TARGET_SUBDIR); \
else true; fi
@@ -2324,7 +2329,8 @@ local-distclean:
-rm -f texinfo/doc/Makefile texinfo/po/POTFILES
-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
-rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
- -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
+ -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
+ -rmdir texinfo zlib 2>/dev/null
-find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
local-maintainer-clean:
@@ -2461,6 +2467,15 @@ vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
.PHONY: vimrc
+# clang-format config
+
+$(srcdir)/.clang-format:
+ $(LN_S) contrib/clang-format $@
+
+clang-format: $(srcdir)/.clang-format
+
+.PHONY: clang-format
+
# Installation targets.
.PHONY: install uninstall
@@ -12154,7 +12169,7 @@ all-mpfr: configure-mpfr
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
(cd $(HOST_SUBDIR)/mpfr && \
- $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
$(STAGE1_FLAGS_TO_PASS) \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
$(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
$(TARGET-mpfr))
@endif mpfr
@@ -12183,7 +12198,7 @@ all-stage1-mpfr: configure-stage1-mpfr
CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
$(EXTRA_HOST_FLAGS) \
- $(STAGE1_FLAGS_TO_PASS) \
+ $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
TFLAGS="$(STAGE1_TFLAGS)" \
$(TARGET-stage1-mpfr)
@@ -12198,7 +12213,7 @@ clean-stage1-mpfr:
fi; \
cd $(HOST_SUBDIR)/mpfr && \
$(MAKE) $(EXTRA_HOST_FLAGS) \
- $(STAGE1_FLAGS_TO_PASS) clean
+ $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
@endif mpfr-bootstrap
@@ -12225,7 +12240,7 @@ all-stage2-mpfr: configure-stage2-mpfr
CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
+ $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
AM_CFLAGS="-DNO_ASM" \
TFLAGS="$(STAGE2_TFLAGS)" \
$(TARGET-stage2-mpfr)
@@ -12239,7 +12254,7 @@ clean-stage2-mpfr:
$(MAKE) stage2-start; \
fi; \
cd $(HOST_SUBDIR)/mpfr && \
- $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
AM_CFLAGS="-DNO_ASM" clean
@endif mpfr-bootstrap
@@ -12266,7 +12281,7 @@ all-stage3-mpfr: configure-stage3-mpfr
CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
+ $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
AM_CFLAGS="-DNO_ASM" \
TFLAGS="$(STAGE3_TFLAGS)" \
$(TARGET-stage3-mpfr)
@@ -12280,7 +12295,7 @@ clean-stage3-mpfr:
$(MAKE) stage3-start; \
fi; \
cd $(HOST_SUBDIR)/mpfr && \
- $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
AM_CFLAGS="-DNO_ASM" clean
@endif mpfr-bootstrap
@@ -12307,7 +12322,7 @@ all-stage4-mpfr: configure-stage4-mpfr
CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
+ $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
AM_CFLAGS="-DNO_ASM" \
TFLAGS="$(STAGE4_TFLAGS)" \
$(TARGET-stage4-mpfr)
@@ -12321,7 +12336,7 @@ clean-stage4-mpfr:
$(MAKE) stage4-start; \
fi; \
cd $(HOST_SUBDIR)/mpfr && \
- $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
AM_CFLAGS="-DNO_ASM" clean
@endif mpfr-bootstrap
@@ -12348,7 +12363,7 @@ all-stageprofile-mpfr: configure-stageprofile-mpfr
CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
+ $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
AM_CFLAGS="-DNO_ASM" \
TFLAGS="$(STAGEprofile_TFLAGS)" \
$(TARGET-stageprofile-mpfr)
@@ -12362,7 +12377,7 @@ clean-stageprofile-mpfr:
$(MAKE) stageprofile-start; \
fi; \
cd $(HOST_SUBDIR)/mpfr && \
- $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
AM_CFLAGS="-DNO_ASM" clean
@endif mpfr-bootstrap
@@ -12389,7 +12404,7 @@ all-stagefeedback-mpfr: configure-stagefeedback-mpfr
CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
+ $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
AM_CFLAGS="-DNO_ASM" \
TFLAGS="$(STAGEfeedback_TFLAGS)" \
$(TARGET-stagefeedback-mpfr)
@@ -12403,7 +12418,7 @@ clean-stagefeedback-mpfr:
$(MAKE) stagefeedback-start; \
fi; \
cd $(HOST_SUBDIR)/mpfr && \
- $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
AM_CFLAGS="-DNO_ASM" clean
@endif mpfr-bootstrap
@@ -12421,7 +12436,7 @@ check-mpfr:
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
(cd $(HOST_SUBDIR)/mpfr && \
- $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
+ $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM"
$(EXTRA_BOOTSTRAP_FLAGS) check)
@endif mpfr
@@ -12456,7 +12471,7 @@ info-mpfr: \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing info in mpfr"; \
@@ -12481,7 +12496,7 @@ dvi-mpfr: \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing dvi in mpfr"; \
@@ -12506,7 +12521,7 @@ pdf-mpfr: \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing pdf in mpfr"; \
@@ -12531,7 +12546,7 @@ html-mpfr: \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing html in mpfr"; \
@@ -12556,7 +12571,7 @@ TAGS-mpfr: \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing TAGS in mpfr"; \
@@ -12582,7 +12597,7 @@ install-info-mpfr: \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing install-info in mpfr"; \
@@ -12608,7 +12623,7 @@ install-pdf-mpfr: \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing install-pdf in mpfr"; \
@@ -12634,7 +12649,7 @@ install-html-mpfr: \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing install-html in mpfr"; \
@@ -12659,7 +12674,7 @@ installcheck-mpfr: \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing installcheck in mpfr"; \
@@ -12683,7 +12698,7 @@ mostlyclean-mpfr:
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing mostlyclean in mpfr"; \
@@ -12707,7 +12722,7 @@ clean-mpfr:
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing clean in mpfr"; \
@@ -12731,7 +12746,7 @@ distclean-mpfr:
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing distclean in mpfr"; \
@@ -12755,7 +12770,7 @@ maintainer-clean-mpfr:
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
- for flag in $(EXTRA_HOST_FLAGS) ; do \
+ for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
done; \
echo "Doing maintainer-clean in mpfr"; \
@@ -51025,6 +51040,7 @@ configure-target-winsup: maybe-all-target-newlib
maybe-all-target-libgloss
configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
+configure-target-libffi: maybe-all-target-libstdc++-v3
configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
configure-target-libjava: maybe-all-target-libstdc++-v3
@@ -51076,7 +51092,10 @@ config.status: configure
# Rebuilding configure.
AUTOCONF = autoconf
$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
- $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
+ $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \
+ $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \
+ $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \
+ $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4
cd $(srcdir) && $(AUTOCONF)
# ------------------------------
diff --git a/binutils/Makefile.tpl b/binutils/Makefile.tpl
index 660e1e4..19728d2 100644
--- a/binutils/Makefile.tpl
+++ b/binutils/Makefile.tpl
@@ -6,7 +6,8 @@ in
#
# Makefile for directory with subdirs to build.
# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011
+# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+# 2011, 2012, 2013, 2014, 2015, 2016
# Free Software Foundation
#
# This file is free software; you can redistribute it and/or modify
@@ -225,8 +226,10 @@ HOST_EXPORTS = \
GMPINC="$(HOST_GMPINC)"; export GMPINC; \
ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
ISLINC="$(HOST_ISLINC)"; export ISLINC; \
+ ISLVER="$(HOST_ISLVER)"; export ISLVER; \
LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
+ XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export
XGCC_FLAGS_FOR_TARGET; \
@if gcc-bootstrap
$(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed
's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
@endif gcc-bootstrap
@@ -314,9 +317,10 @@ NORMAL_TARGET_EXPORTS = \
HOST_GMPLIBS = @gmplibs@
HOST_GMPINC = @gmpinc@
-# Where to find ISL
+# Where to find isl
HOST_ISLLIBS = @isllibs@
HOST_ISLINC = @islinc@
+HOST_ISLVER = @islver@
# Where to find libelf
HOST_LIBELFLIBS = @libelflibs@
@@ -589,7 +593,8 @@ BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional
+] \
$(CXX_FOR_TARGET_FLAG_TO_PASS) \
"TFLAGS=$(TFLAGS)" \
"CONFIG_SHELL=$(SHELL)" \
- "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
+ "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
+ $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
# We leave this in just in case, but it is not needed anymore.
RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
@@ -806,7 +811,7 @@ local-clean:
local-distclean:
-rm -f Makefile config.status config.cache mh-frag mt-frag
- -rm -f maybedep.tmp serdep.tmp
+ -rm -f maybedep.tmp serdep.tmp stage_final
-if [ "$(TARGET_SUBDIR)" != "." ]; then \
rm -rf $(TARGET_SUBDIR); \
else true; fi
@@ -818,7 +823,8 @@ local-distclean:
-rm -f texinfo/doc/Makefile texinfo/po/POTFILES
-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
-rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
- -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
+ -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
+ -rmdir texinfo zlib 2>/dev/null
-find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
local-maintainer-clean:
@@ -889,6 +895,15 @@ vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
.PHONY: vimrc
+# clang-format config
+
+$(srcdir)/.clang-format:
+ $(LN_S) contrib/clang-format $@
+
+clang-format: $(srcdir)/.clang-format
+
+.PHONY: clang-format
+
# Installation targets.
.PHONY: install uninstall
@@ -1917,7 +1932,10 @@ config.status: configure
# Rebuilding configure.
AUTOCONF = autoconf
$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
- $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4
+ $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \
+ $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \
+ $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \
+ $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4
cd $(srcdir) && $(AUTOCONF)
# ------------------------------
diff --git a/binutils/bfd/ChangeLog b/binutils/bfd/ChangeLog
index 7b4ccd1..4f859c5 100644
--- a/binutils/bfd/ChangeLog
+++ b/binutils/bfd/ChangeLog
@@ -1,1557 +1,574 @@
-2016-06-29 Tristan Gingold <gingold@xxxxxxxxxxx>
+2016-08-03 Tristan Gingold <gingold@xxxxxxxxxxx>
- * version.m4: Bump version to 2.26.1
+ * version.m4: Bump version to 2.27
* configure: Regenerate.
-2016-06-29 Tristan Gingold <gingold@xxxxxxxxxxx>
+2016-08-03 Tristan Gingold <gingold@xxxxxxxxxxx>
* development.sh: Set development to false.
-2016-06-28 Alan Modra <amodra@xxxxxxxxx>
+2016-08-02 Alan Modra <amodra@xxxxxxxxx>
- Apply from master
- 2016-05-19 Alan Modra <amodra@xxxxxxxxx>
- * elf64-ppc.c (ppc64_elf_branch_reloc): Check for NULL owner
- before dereferencing.
-
-2016-06-28 Alan Modra <amodra@xxxxxxxxx>
-
- PR ld/19264
- * elf64-ppc.c (STUB_SHRINK_ITER): Define.
- (ppc64_elf_size_stubs): Exit stub sizing loop past STUB_SHRINK_ITER
- if shrinking stubs.
- (ppc64_elf_size_stubs): Adjust to suit.
-
-2016-06-14 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@xxxxxxxxx>
-
- Backport from master
- 2016-06-14 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@xxxxxxxxx>
-
- PR ld/20254
- * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust reloc
- offsets until reloc_toaddr.
-
-2016-06-14 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-06-13 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/20244
- * elf32-i386.c (elf_i386_relocate_section): Add the .got.plt
- section address for R_386_GOT32/R_386_GOT32X relocations against
- IFUNC symbols if there is no base register and return error for
- PIC.
-
- 2016-06-13 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_relocate_section): Simplify IFUNC
- GOT32 adjustment for static executables.
-
-2016-06-14 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-06-11 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/20244
- * elf32-i386.c (elf_i386_relocate_section): When relocating
- R_386_GOT32, return error without a base register for PIC and
- subtract the .got.plt section address only with a base register.
-
-2016-06-13 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@xxxxxxxxx>
-
- Backport from master
- 2016-06-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@xxxxxxxxx>
-
- PR ld/20221
- * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust syms
- and relocs only if shrinking occurred.
-
-2016-06-09 Alan Modra <amodra@xxxxxxxxx>
-
- PR ld/20159
- PR ld/16467
- * elflink.c (_bfd_elf_merge_symbol): Revert PR16467 change.
- (_bfd_elf_add_default_symbol): Don't indirect to/from defined
- symbol given a version by a script different to the version
- of the symbol being added.
- (elf_link_add_object_symbols): Use _bfd_elf_strtab_save and
- _bfd_elf_strtab_restore. Don't fudge dynstr references.
- * elf-strtab.c (_bfd_elf_strtab_restore_size): Delete.
- (struct strtab_save): New.
- (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): New functions.
- * elf-bfd.h (_bfd_elf_strtab_restore_size): Delete.
- (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): Declare.
-
-2016-05-20 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-05-20 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_check_relocs): Don't check R_386_GOT32
- when setting need_convert_load.
-
- 2016-05-19 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/20117
- * elf32-i386.c (elf_i386_convert_load): Don't convert
- R_386_GOT32.
-
-2016-05-18 Christophe Monat <christophe.monat@xxxxxx>
-
- Backport from master
- 2016-05-09 Christophe Monat <christophe.monat@xxxxxx>
-
- PR ld/20030
- * elf32-arm.c (is_thumb2_vldm): Account for T1 (DP) encoding.
- (stm32l4xx_need_create_replacing_stub): Rename ambiguous nb_regs
- to nb_words.
- (create_instruction_vldmia): Add is_dp to disambiguate SP/DP
- encoding.
- (create_instruction_vldmdb): Likewise.
- (stm32l4xx_create_replacing_stub_vldm): is_dp detects DP encoding,
- uses it to re-encode.
-
-2016-05-15 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-05-13 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/20093
- * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Don't convert
- GOTPCREL relocation against large section.
-
- * elflink.c (bfd_elf_final_link): Likewise.
-
-2016-05-11 Alan Modra <amodra@xxxxxxxxx>
-
- PR 20060
- * elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
- * elf32-ppc.c (ppc_elf_tls_setup): Likewise.
-
-2016-04-30 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-04-27 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/20006
- * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
- when estimating distances between output sections.
-
-2016-03-29 Toni Spets <toni.spets@xxxxxx>
+ PR ld/20428
+ * elf64-ppc.c (ppc_get_stub_entry): Don't segfault on NULL group.
- PR 19878
- * coffcode.h (coff_write_object_contents): Revert accidental
- 2014-11-10 change.
-
-2016-03-17 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-03-15 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19827
- * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
- locally in PIE.
- (elf_i386_relocate_section): Likewise.
- * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
- (elf_x86_64_relocate_section): Likewise.
-
-2016-03-15 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-01-30 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19539
- * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
- against STT_GNU_IFUNC symbol only with dynamic symbols.
- * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
-
-2016-03-15 Nick Clifton <nickc@xxxxxxxxxx>
-
- Backport from master:
- 2016-03-09 Leon Winter <winter-gcc@xxxxxxxxxxxxx>
-
- PR ld/19623
- * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
- relocations against absolute symbols.
-
-2016-03-14 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-01-28 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR binutils/19523
- * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
- decompress debug sections.
-
-2016-03-09 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19579
- Backport from master
- 2016-03-08 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
- together.
-
- 2016-03-04 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
- executable as definition if the new definition comes from a
- shared library.
-
-2016-03-09 Nick Clifton <nickc@xxxxxxxxxx>
- Alan Modra <amodra@xxxxxxxxx>
-
- PR binutils/19775
- * archive.c (bfd_generic_openr_next_archived_file): Allow zero
- length elements in the archive.
- * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Likewise.
-
-2016-03-01 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19752
- Backport from master
- 2015-12-18 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+2016-07-27 Nick Clifton <nickc@xxxxxxxxxx>
- * coff-x86_64.c (coff_amd64_reloc): Fix formatting.
-
- 2015-12-18 Nick Clifton <nickc@xxxxxxxxxx>
-
- * coff-i386.c (coff_i386_reloc): Fix formatting.
-
-2016-02-26 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-02-24 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19698
- * elflink.c (bfd_elf_record_link_assignment): Set versioned if
- symbol version is unknown.
-
-2016-02-26 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-02-01 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19553
- * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
- if a symbol from a library loaded via DT_NEEDED doesn't match
- the symbol referenced by regular object.
-
-2016-02-26 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-02-24 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
- to (bfd_vma) -1 when setting needs_plt to 0.
- * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
-
-2016-02-26 Alan Modra <amodra@xxxxxxxxx>
-
- * elf64-ppc.c (create_linkage_sections): Create sfpr when
- save_restore_funcs, rest of sections when not relocatable.
- (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
- (sfpr_define): Define all symbols on emitted code.
- (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
- when relocatable. Move sfpr_define loop earlier.
-
-2016-02-25 Jiong Wang <jiong.wang@xxxxxxx>
-
- Backport from master
- 2016-01-21 Jiong Wang <jiong.wang@xxxxxxx>
-
- * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
- veneer for sym_sec != input_sec.
- (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
- (elfNN_aarch64_final_link_relocate): Take rela addend into account when
- calculation destination.
-
-2016-02-10 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-02-10 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19601
- * elf32-i386.c (elf_i386_relocate_section): Mask off the least
- significant bit in GOT offset for R_386_GOT32X.
-
-2016-02-02 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- Backport from master
- 2016-02-02 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19542
- * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
- distances in the compressed_size field of the output section.
-
-2016-02-01 John David Anglin <danglin@xxxxxxxxxxx>
-
- PR ld/19526
- * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
- files.
- * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
-
-2016-01-25 Tristan Gingold <gingold@xxxxxxxxxxx>
-
- * version.m4: Bump version to 2.26.0
- * configure: Regenerate.
-
-2016-01-25 Tristan Gingold <gingold@xxxxxxxxxxx>
-
- * version.m4: Bump version to 2.26
- * configure: Regenerate.
-
-2016-01-14 Alan Modra <amodra@xxxxxxxxx>
-
- PR ld/19421
- PR ld/4317
- * elflink.c (elf_link_input_bfd): Revert 2015-02-19 changes.
- (elf_link_output_extsym): Likewise.
-
-2016-01-11 Jiong Wang <jiong.wang@xxxxxxx>
-
- Apply from master
-
- 2016-01-08 Richard Sandiford <richard.sandiford@xxxxxxx>
- Jiong Wang <jiong.wang@xxxxxxx>
-
- PR ld/19368
- * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
- reloc_class_ifunc.
-
-2016-01-06 Maciej W. Rozycki <macro@xxxxxxxxxx>
-
- Apply from master.
- 2016-01-04 Maciej W. Rozycki <macro@xxxxxxxxxx>
- * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
- return status from `_bfd_elf_merge_object_attributes'.
-
-2015-12-11 Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
-
- Apply from master.
- 2015-11-19 Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
-
- PR ld/19263
- * elf32-s390.c (elf_s390_gc_sweep_hook): Add null ptr check.
- * elf64-s390.c (elf_s390_check_relocs): Port the GOTOFF handling
- over from the 32 bit code.
- (elf_s390_relocate_section): Likewise.
-
-2015-12-10 Alan Modra <amodra@xxxxxxxxx>
-
- Apply from master.
- 2015-12-07 Alan Modra <amodra@xxxxxxxxx>
- * elf32-ppc.c (ppc_elf_check_relocs): Don't error on local ifunc
- plt call. Wrap long lines.
- (ppc_elf_relocate_section): Wrap long lines.
- * elf64-ppc.c (ppc64_elf_check_relocs): Don't error on local ifunc
- plt calls. Move __tls_get_addr checks later. Don't create plt
- for addr14/addr24 relocs.
- (ppc64_elf_gc_sweep_hook): Adjust to suit check_relocs changes.
- (ppc64_elf_relocate_section): Correct local ifunc handling for
- PLT64, PLT32 and PLT16 relocs.
-
- 2015-12-07 Alan Modra <amodra@xxxxxxxxx>
- PR 19323
- * elfcode.h (elf_object_p): Check for ridiculous e_shnum and
- e_phnum values.
-
- 2015-12-07 Alan Modra <amodra@xxxxxxxxx>
- * reloc.c (BFD_RELOC_PPC64_ENTRY): New.
- * elf64-ppc.c (reloc_howto_type ppc64_elf_howto_raw): Add
- entry for R_PPC64_ENTRY.
- (LD_R2_0R12, ADD_R2_R2_R12, LIS_R2, ADDIS_R2_R12): Define.
- (ppc64_elf_reloc_type_lookup): Handle R_PPC64_ENTRY.
- (ppc64_elf_relocate_section): Edit code at R_PPC64_ENTTY. Use
- new insn defines.
- * libbfd.h: Regenerate.
- * bfd-in2.h: Regenerate.
-
- 2015-12-02 Alan Modra <amodra@xxxxxxxxx>
- PR binutils/19315
- * dwarf2.c (_bfd_elf_find_function): Return symbol matched.
- (_bfd_dwarf2_find_nearest_line): Check symbol returned above
- against dwarf range.
- * elf-bfd.h (_bfd_elf_find_function): Update prototype.
-
- 2015-12-02 Alan Modra <amodra@xxxxxxxxx>
- * elf64-ppc.c (ppc64_elf_tls_optimize): Don't segfault on NULL
- symbol section or output section.
- (ppc64_elf_edit_toc): Similarly for ld -R objects.
- (ppc64_elf_size_stubs): Likewise.
-
- 2015-11-20 Stefan Teleman <stefan.teleman@xxxxxxxxxx>
- PR ld/19260
- * cache.c (bfd_cache_max_open): Avoid using getrlimit on 32-bit
- Solaris as the result is unreliable.
-
- 2015-11-18 Alan Modra <amodra@xxxxxxxxx>
- PR 19256
- * archive.c (bfd_generic_openr_next_archived_file): Don't allow
- backward file movement via "negative" sizes.
- * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Likewise.
-
-2015-12-04 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_convert_load): Skip if addend isn't 0.
- (elf_i386_relocate_section): Skip R_386_GOT32X optimization if
- addend isn't 0.
-
-2015-12-01 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+ * Import this patch from the mainline:
+ 2016-07-27 Ozkan Sezer <sezeroz@xxxxxxxxx>
+ Nick Clifton <nickc@xxxxxxxxxx>
- PR ld/19319
- * elf32-i386.c (elf_i386_convert_load): Check h->def_regular
- instead of bfd_link_hash_new.
- * elf64-x86-64.c (elf_x86_64_convert_load): Likewise. Skip
- relocation overflow for bfd_link_hash_undefined and
- bfd_link_hash_new if h->def_regular is set.
+ PR ld/20401
+ * coffgen.c (fini_reloc_cookie_rels): Check for the extistence
+ of the coff_section_data before using it.
-2015-11-13 Tristan Gingold <gingold@xxxxxxxxxxx>
+2016-07-01 Tristan Gingold <gingold@xxxxxxxxxxx>
- * version.m4: Bump version to 2.25.90
+ * version.m4: Bump version to 2.26.90
* configure: Regenerate.
-2015-11-13 Tristan Gingold <gingold@xxxxxxxxxxx>
+2016-07-01 Tristan Gingold <gingold@xxxxxxxxxxx>
- * version.m4: Bump version to 2.26.51
+ * version.m4: Bump version to 2.27.51
* configure: Regenerate.
-2015-11-11 Alan Modra <amodra@xxxxxxxxx>
- Peter Bergner <bergner@xxxxxxxxxxxx>
-
- * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_REL16DX_HA.
- (ppc_elf_reloc_type_lookup): Handle R_PPC_REL16DX_HA.
- (ppc_elf_addr16_ha_reloc): Likewise.
- (ppc_elf_check_relocs): Likewise.
- (ppc_elf_relocate_section): Likewise.
- (is_insn_dq_form): Handle lxv and stxv instructions.
- * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_REL16DX_HA.
- (ppc64_elf_reloc_type_lookup): Handle R_PPC64_REL16DX_HA.
- (ppc64_elf_ha_reloc): Likewise.
- (ppc64_elf_check_relocs): Likewise.
- (ppc64_elf_relocate_section): Likewise.
+2016-06-29 Nick Clifton <nickc@xxxxxxxxxx>
+
+ * elfnn-aarch64.c (is_aarch64_mapping_symbol): New function.
+ Returns TRUE for AArch64 mapping symbols.
+ (elfNN_aarch64_backend_symbol_processing): New function. Marks
+ mapping symbols as precious in object files so that they will not
+ be stripped.
+ (elf_backend_symbol_processing): Define.
+
+ * elf32-arm.c (is_arm_mapping_symbol): New function. Returns TRUE
+ for ARM mapping symbols.
+ (elf32_arm_backend_symbol_processing): Make use of the new function.
+
+2016-06-28 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+
+ PR ld/20306
+ * elflink.c (elf_link_check_versioned_symbol): Return false
+ for unreferenced undefined symbol.
+
+2016-06-28 Nick Clifton <nickc@xxxxxxxxxx>
+
+ * elf32-bfin.c (bfin_adjust_dynamic_symbol): Fail if a COPY reloc
+ is needed.
+
+ * elf32-arm.c (elf32_arm_backend_symbol_processing): New
+ function. Marks mapping symbols in object files as precious, so
+ that strip will not remove them.
+ (elf_backend_symbol_processing): Define.
+
+2016-06-28 James Clarke <jrtc27@xxxxxxxxxx>
+
+ * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Don't convert
+ R_SPARC_32 to R_SPARC_RELATIVE if class is ELFCLASS64.
+
+2016-06-28 Maciej W. Rozycki <macro@xxxxxxxxxx>
+
+ * elf32-mips.c (elf_mips16_howto_table_rel): Add
+ R_MIPS16_PC16_S1.
+ (mips16_reloc_map): Likewise.
+ * elf64-mips.c (mips16_elf64_howto_table_rel): Likewise.
+ (mips16_elf64_howto_table_rela): Likewise.
+ (mips16_reloc_map): Likewise.
+ * elfn32-mips.c (elf_mips16_howto_table_rel): Likewise.
+ (elf_mips16_howto_table_rela): Likewise.
+ (mips16_reloc_map): Likewise.
+ * elfxx-mips.c (mips16_branch_reloc_p): New function.
+ (mips16_reloc_p): Handle R_MIPS16_PC16_S1.
+ (b_reloc_p): Likewise.
+ (mips_elf_calculate_relocation): Likewise.
+ (_bfd_mips_elf_check_relocs): Likewise.
+ * reloc.c (BFD_RELOC_MIPS16_16_PCREL_S1): New relocation.
* bfd-in2.h: Regenerate.
- * libbfd.h: Likewise.
- * reloc.c (BFD_RELOC_PPC_REL16DX_HA): New.
-
-2015-11-10 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_relocate_section): Handle VTINHERIT
- and VTENTRY relocations when deleting relocations.
- * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
-
-2015-11-10 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_relocate_section): Properly move
- kept relocations when deleting relocations.
- * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
-
-2015-11-09 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_relocate_section): Use read and write
- pointers to reloc array, rather than memmove when deleting a
- reloc. Don't use RELOC_AGAINST_DISCARDED_SECTION. Adjust
- reloc counts at end of loop.
- * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
-
-2015-11-10 Alan Modra <amodra@xxxxxxxxx>
-
- * elf64-ppc.c (ppc64_elf_relocate_section): Use read and write
- pointers to reloc array, rather than memmove when deleting a
- reloc. Don't use RELOC_AGAINST_DISCARDED_SECTION. Adjust
- reloc counts at end of loop.
- * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
-
-2015-11-09 Dominik Vogt <vogt@xxxxxxxxxxxxxxxxxx>
-
- * elf64-ppc.c (ppc64_elf_size_stubs, ppc64_elf_build_stubs): Fix left
- shift of negative value.
- * libbfd.c (safe_read_leb128): Likewise.
- * dwarf2.c (place_sections): Likewise.
- * bfd-in.h (align_power): Likewise.
- * bfd-in2.h (align_power): Likewise.
-
-2015-10-30 Nick Clifton <nickc@xxxxxxxxxx>
-
- * po/zh_CN.po: Updated (simplified) Chinese translation.
-
-2015-10-29 Catherine Moore <clm@xxxxxxxxxxxxxxxx>
-
- * elfxx-mips.c (mips_elf_check_mips16_stubs): Set a stub's output
- section to bfd_abs_section_ptr if the stub is discarded.
-
-2015-10-29 Ed Schouten <ed@xxxxxxx>
-
- * config.bfd (targ_defvec): Add support for CloudABI on aarch64.
- For this target we have to make sure we use ELFOSABI_CLOUDABI
- instead of ELFOSABI_NONE.
- * configure.ac (tb): Likewise.
- * elfnn-aarch64.c: Likewise.
- * targets.c (_bfd_target_vector): Likewise.
- * configure: Regenerate.
-
-2015-10-29 Pedro Alves <palves@xxxxxxxxxx>
-
- * libhppa.h (bfd_hppa_insn2fmt): Add cast.
-
-2015-10-28 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_relocate_section): Fix a typo in
- comment.
-
-2015-10-28 Nick Clifton <nickc@xxxxxxxxxx>
-
- * elf32-arm.c (create_instruction_branch_absolute): Replace
- pointer parameters with a simple integer parameter.
- (stm32l4xx_create_replacing_stub_ldmia): Update calls to
- create_instruction_branch_absolute.
- (stm32l4xx_create_replacing_stub_ldmdb): Likewise.
- (stm32l4xx_create_replacing_stub_vldm): Likewise.
- (elf32_arm_write_section): Use pointer type for veneer addresses.
-
-2015-10-28 Cupertino Miranda <cmiranda@xxxxxxxxxxxx>
-
- * reloc.c (BFD_RELOC_ARC_32_PCREL): New entry.
- * elf32-arc.c (arc_elf_howto_ini): Update formula.
- (get_middle_endian_relocation): New function.
- (PDATA): Define.
- * bfd-in2.h: Regenerate.
- * libbfd.h: Likewise.
-
-2015-10-28 Alan Modra <amodra@xxxxxxxxx>
-
- PR ld/19162
- * elflink.c (_bfd_elf_gc_mark_reloc): Move code iterating over
- linker input bfds..
- * section.c (bfd_get_next_section_by_name): ..to here. Add ibfd param.
- (bfd_get_linker_section): Adjust bfd_get_next_section_by_name call.
- * tekhex.c (first_phase): Likewise.
- * elflink.c (bfd_elf_gc_sections): Likewise.
- * bfd-in2.h: Regenerate.
-
-2015-10-27 Laurent Alfonsi <laurent.alfonsi@xxxxxx>
- Christophe Monat <christophe.monat@xxxxxx>
-
- * bfd-in2.h: Regenerate.
- * bfd-in.h (bfd_arm_stm32l4xx_fix): New enum. Specify how
- STM32L4XX instruction scanning should be done.
- (bfd_elf32_arm_set_stm32l4xx_fix)
- (bfd_elf32_arm_stm32l4xx_erratum_scan)
- (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Add prototypes.
- (bfd_elf32_arm_set_target_relocs): Add stm32l4xx fix type argument
- to prototype.
- * elf32-arm.c (STM32L4XX_ERRATUM_VENEER_SECTION_NAME)
- (STM32L4XX_ERRATUM_VENEER_ENTRY_NAME): Define macros.
- (elf32_stm32l4xx_erratum_type): New enum.
- (elf32_stm32l4xx_erratum_list): New struct. List of veneers or
- jumps to veneers.
- (_arm_elf_section_data): Add stm32l4xx_erratumcount,
- stm32l4xx_erratumlist.
- (elf32_arm_link_hash_table): Add stm32l4xx_erratum_glue_size,
- stm32l4xx_fix and num_stm32l4xx_fixes fields.
- (ctz): New function.
- (popcount): New function.
- (elf32_arm_link_hash_table_create): Initialize stm32l4xx_fix.
- (put_thumb2_insn): New function.
- (STM32L4XX_ERRATUM_LDM_VENEER_SIZE): Define. Size of a veneer for
- LDM instructions.
- (STM32L4XX_ERRATUM_VLDM_VENEER_SIZE): Define. Size of a veneer for
- VLDM instructions.
- (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
- glue section.
- (record_stm32l4xx_erratum_veneer) : New function. Create a single
- veneer, and its associated symbols.
- (bfd_elf32_arm_add_glue_sections_to_bfd): Add STM32L4XX erratum glue.
- (bfd_elf32_arm_set_stm32l4xx_fix): New function. Set the type of
- erratum workaround required.
- (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): New function. Find
- out where veneers and branches to veneers have been placed in
- virtual memory after layout.
- (is_thumb2_ldmia): New function.
- (is_thumb2_ldmdb): Likewise.
- (is_thumb2_vldm ): Likewise.
- (stm32l4xx_need_create_replacing_stub): New function. Decide if a
- veneer must be emitted.
- (bfd_elf32_arm_stm32l4xx_erratum_scan): Scan the sections of an
- input BFD for potential erratum-triggering insns. Record results.
- (bfd_elf32_arm_set_target_relocs): Set stm32l4xx_fix field in
- global hash table.
- (elf32_arm_size_dynamic_sections): Collect glue information.
- (create_instruction_branch_absolute): New function.
- (create_instruction_ldmia): Likewise.
- (create_instruction_ldmdb): Likewise.
- (create_instruction_mov): Likewise.
- (create_instruction_sub): Likewise.
- (create_instruction_vldmia): Likewise.
- (create_instruction_vldmdb): Likewise.
- (create_instruction_udf_w): Likewise.
- (create_instruction_udf): Likewise.
- (push_thumb2_insn32): Likewise.
- (push_thumb2_insn16): Likewise.
- (stm32l4xx_fill_stub_udf): Likewise.
- (stm32l4xx_create_replacing_stub_ldmia): New function. Expands the
- replacing stub for ldmia instructions.
- (stm32l4xx_create_replacing_stub_ldmdb): Likewise for ldmdb.
- (stm32l4xx_create_replacing_stub_vldm): Likewise for vldm.
- (stm32l4xx_create_replacing_stub): New function. Dispatches the
- stub emission to the appropriate functions.
- (elf32_arm_write_section): Output veneers, and branches to veneers.
-
-2015-10-27 Sangamesh Mallayya <nickc@xxxxxxxxxx>sangamesh.swamy@xxxxxxxxxx>
-
- * configure.ac (powerpc64-*-aix[5-9].*): Match powerpc64 running
- aix for core file support.
- * configure: Regenerate.
- * rs6000-core.c: Check for __ld_info64 if compiling 64-bit gdb.
- Added BFD64 check if we are using old core file format for 32-bit gdb.
- Set sizeof CORE_COMMONSZ appropriately in case of either new or
- old core file format.
- (read_hdr): Added BFD64 check for 64-bit support.
- (rs6000coff_core_p): Likewise.
- (rs6000coff_core_file_matches_executable_p): Likewise.
- (rs6000coff_core_file_failing_command): Likewise.
- (rs6000coff_core_file_failing_signal): Likewise.
- Add support for debugging core files generated by binaries in
- Large Memory model.
- (rs6000coff_core_p): If Large Memory Model is used, then the .data
- segment should start from BDATAORG which has been defined in the
- system header files.
-
-2015-10-26 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19175
- * elf32-i386.c (elf_i386_convert_load): Check bfd_link_hash_new
- instead of calling bfd_link_get_defined_symbol.
- * elf64-x86-64.c (elf_x86_64_convert_load): Likewise. Skip
- relocation overflow for bfd_link_hash_new.
- * linker.c (bfd_link_get_defined_symbol): Removed.
- * bfd-in2.h: Regenerated.
-
-2015-10-26 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19171
- * elf32-i386.c (elf_i386_convert_load): Call
- bfd_link_get_defined_symbol to check if a symbol is defined.
- * elf64-x86-64.c (elf_x86_64_convert_load): Call
- bfd_link_get_defined_symbol to get defined symbol section and
- value.
- * linker.c (bfd_link_get_defined_symbol): New function.
- * bfd-in2.h: Regenerated.
-
-2015-10-23 Alan Modra <amodra@xxxxxxxxx>
-
- PR ld/11133
- PR ld/19161
- PR ld/19167
- * elflink.c (_bfd_elf_gc_mark_hook): Delete code handling __start_*
- and __stop_* symbol refs.
- (_bfd_elf_gc_mark_rsec): Add start_stop parameter. Handle __start_*
- and __stop_* symbol refs here..
- (_bfd_elf_gc_mark_reloc): ..and here.
- * elf-bfd.h (_bfd_elf_gc_mark_hook): Update prototype.
- * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Update
- _bfd_elf_gc_mark_rsec call.
-
-2015-10-23 Alan Modra <amodra@xxxxxxxxx>
-
- PR ld/11133
- PR ld/19161
- * elflink.c (elf_gc_sweep): Revert last patch.
- (_bfd_elf_gc_mark_hook): Don't set SEC_KEEP here.
-
-2015-10-22 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19161
- * elflink.c (elf_gc_sweep): Always keep sections marked with
- SEC_KEEP.
-
-2015-10-22 Hans-Peter Nilsson <hp@xxxxxxxxxxxx>
-
- * mmo.c (struct mmo_data_struct): New members
- symbol_consistency_override_calculated and ignore_symbol_consistency.
- (mmo_section_has_contents, mmo_ignore_symbol_consistency): New
- functions.
- (mmo_create_symbol): Check with mmo_ignore_symbol_consistency if to
- report an error for unexpected value of Main.
- (mmo_write_symbols_and_terminator): Similar.
-
-2015-10-22 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_convert_load): Use call_nop_byte and
- check call_nop_as_suffix for 1-byte NOP padding to pad call.
- * elf64-x86-64.c (elf_x86_64_convert_load): Likewise.
-
-2015-10-22 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf64-x86-64.c: Include opcode/i386.h.
- (x86_64_elf_howto_table): Add R_X86_64_GOTPCRELX and
- R_X86_64_REX_GOTPCRELX.
- (R_X86_64_standard): Replace R_X86_64_PLT32_BND with
- R_X86_64_REX_GOTPCRELX.
- (x86_64_reloc_map): Add BFD_RELOC_X86_64_GOTPCRELX and
- BFD_RELOC_X86_64_REX_GOTPCRELX.
- (need_convert_mov_to_lea): Renamed to ...
- (need_convert_load): This.
- (elf_x86_64_check_relocs): Handle R_X86_64_GOTPCRELX and
- R_X86_64_REX_GOTPCRELX. Replace need_convert_mov_to_lea with
- need_convert_load.
- (elf_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPCRELX and
- R_X86_64_REX_GOTPCRELX.
- (elf_x86_64_size_dynamic_sections): Likewise.
- (elf_x86_64_relocate_section): Likewise.
- (elf_x86_64_convert_mov_to_lea): Renamed to ...
- (elf_x86_64_convert_load): This. Replace need_convert_mov_to_lea
- with need_convert_load. Support R_X86_64_GOTPCRELX and
- R_X86_64_REX_GOTPCRELX transformations.
- * reloc.c (BFD_RELOC_X86_64_GOTPCRELX): New.
- (BFD_RELOC_X86_64_REX_GOTPCRELX): Likewise.
- * bfd-in2.h: Regenerated.
- * libbfd.h: Likewise.
-
-2015-10-22 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c: Include opcode/i386.h.
- (elf_howto_table): Add R_386_GOT32X.
- (R_386_ext2): Replace R_386_IRELATIVE with R_386_GOT32X.
- (elf_i386_reloc_type_lookup): Handle BFD_RELOC_386_GOT32X.
- (need_convert_mov_to_lea): Renamed to ...
- (need_convert_load): This.
- (elf_i386_check_relocs): Handle R_386_GOT32X. Replace
- need_convert_mov_to_lea with need_convert_load.
- (elf_i386_gc_sweep_hook): Handle R_386_GOT32X.
- (elf_i386_size_dynamic_sections): Likewise.
- (elf_i386_relocate_section): Likewise.
- (elf_i386_convert_mov_to_lea): Renamed to ...
- (elf_i386_convert_load): This. Replace need_convert_mov_to_lea
- with need_convert_load. Support R_386_GOT32X transformations.
- * reloc.c (BFD_RELOC_386_GOT32X): New.
- * bfd-in2.h: Regenerated.
- * libbfd.h: Likewise.
-
-2015-10-22 Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
-
- * elf32-s390.c (elf_s390_check_relocs): Set the non_got_ref marker
- only when linking an executable.
- (elf_s390_relocate_section): Redirect PC-relative relocs to a IPLT
- slot.
- * elf64-s390.c (elf_s390_check_relocs): Set the non_got_ref marker
- only when linking an executable.
- (elf_s390_relocate_section): Redirect PC-relative relocs to a IPLT
- slot.
-
-2015-10-22 Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
-
- * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Set the PLT
- reference counters for local IFUNC calls.
- * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
-
-2015-10-22 Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
-
- * elf32-s390.c (elf_s390_check_relocs): Fallthrough to the PLT
- slot allocating code for GOTOFF relocs on ifunc symbols.
- (elf_s390_gc_sweep_hook): Decrement plt refcount for GOTOFF relocs
- on ifunc symbols.
- (elf_s390_relocate_section): Redirect a GOTOFF reloc to an iplt
- slot.
-
-2015-10-22 Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
-
- PR ld/18841
- * elf32-s390.c (elf_s390_reloc_type_class): Return
- reloc_class_ifunc for ifunc symbols.
- * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
-
-2015-10-22 Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
-
- * elf32-s390.c (elf_s390_finish_dynamic_symbol): Call
- elf_s390_finish_ifunc_symbol only for actually defined symbols.
- * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
-
-2015-10-22 Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
-
- * elf-s390-common.c (s390_elf_allocate_ifunc_dyn_relocs): Remove
- `head' parameter.
- * elf32-s390.c (allocate_dynrelocs): Don't use last parameter.
- * elf64-s390.c (allocate_dynrelocs): Don't use last parameter.
-
-2015-10-20 Hans-Peter Nilsson <hp@xxxxxxxxxxxx>
-
- * mmo.c (mmo_write_symbols_and_terminator): Correct printed value
- of Main in error message.
-
-2015-10-18 Doug Evans <xdje42@xxxxxxxxx>
-
- * targets.c (bfd_flavour_name): "MMO" is spelled "mmo".
-
-2015-10-17 Alan Modra <amodra@xxxxxxxxx>
-
- * elf64-ppc.c (ppc64_elf_size_stubs): Correct __glink_PLTresolve
- eh_frame FDE for ELFv1.
-
-2015-10-16 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_convert_mov_to_lea): Check if symbol
- is defined.
- * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
-
-2015-10-16 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elf32-i386.c (elf_i386_convert_mov_to_lea): Don't check
- def_regular.
- * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
-
-2015-10-15 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * elflink.c (_bfd_elf_merge_symbol): Fix typos in comments
-
-2015-10-15 Alan Modra <amodra@xxxxxxxxx>
-
- * elf32-v850.c (v850_elf_copy_private_bfd_data): Remove assertion
- that input and output .note.renesas sections are same size.
- Instead, only copy input to output if they are.
-
-2015-10-15 Riku Voipio <riku.voipio@xxxxxx>
-
- PR ld/19123
- * elfcore.h (elf_core_file_p): Use the file_ptr type to hold the
- offset for bfd_seek.
- * elfcode.h (elf_object_p): Likewise.
-
-2015-10-14 Rich Felker <dalias@xxxxxxxx>
-
- PR ld/19091
- * elf32-sh.c (sh_elf_size_dynamic_sections): Always emit
- DT_PLTGOT for FDPIC output.
-
-2015-10-13 Alan Modra <amodra@xxxxxxxxx>
-
- * elf.c (_bfd_elf_map_sections_to_segments): Don't set
- PT_GNU_RELRO p_flags.
- (assign_file_positions_for_non_load_sections): Set PT_GNU_RELRO
- flags to PF_R here.
-
-2015-10-12 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19073
- * elflink.c (_bfd_elf_add_default_symbol): Skip the unversioned
- definition after the default version.
-
-2015-10-12 Andreas Krebbel <krebbel@xxxxxxxxxxxxxxxxxx>
-
- PR ld/19083
- * elf32-s390.c (elf_s390_gc_sweep_hook): Do not reduce got
- refcount for relocs not really requiring a got slot.
- * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
-
-2015-10-11 John David Anglin <danglin@xxxxxxxxxxx>
-
- * elf-hppa.h (elf_hppa_action_discarded): Ignore relocations in
- .data.rel.ro.local.
+ * libbfd.h: Regenerate.
-2015-10-07 Cupertino Miranda <cmiranda@xxxxxxxxxxxx>
+2016-06-27 Alan Modra <amodra@xxxxxxxxx>
- * archures.c: Remove support for older ARC. Added support for new
- ARC cpus (ARC600, ARC601, ARC700, ARCV2).
- * bfd-in2.h: Likewise.
- * config.bfd: Likewise.
- * cpu-arc.c: Likewise.
- * elf32-arc.c: Totally changed file with a refactored
- inplementation of the ARC port.
- * libbfd.h: Added ARC specific relocation types.
- * reloc.c: Likewise.
+ PR ld/19264
+ * elf64-ppc.c (STUB_SHRINK_ITER): Define.
+ (ppc64_elf_size_stubs): Exit stub sizing loop past STUB_SHRINK_ITER
+ if shrinking stubs.
+ (ppc64_elf_size_stubs): Adjust to suit.
-2015-10-06 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+2016-06-27 Trevor Saunders <tbsaunde+binutils@xxxxxxxxxxxx>
- * bfd.c (bfd_update_compression_header): Clear the ch_reserved
- field in 64-bit output.
- (bfd_convert_section_contents): Likewise.
+ * elf32-dlx.h: New file.
+ * elf32-dlx.c: Adjust.
-2015-10-05 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+2016-06-25 Trevor Saunders <tbsaunde+binutils@xxxxxxxxxxxx>
- PR ld/18914
- * elflink.c (elf_link_add_object_symbols): Don't re-export a
- symbol if it isn't undefined.
+ * elf32-xtensa.c (xtensa_make_property_section): Remove prototype.
-2015-10-04 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+2016-06-24 John Baldwin <jhb@xxxxxxxxxxx>
- * config.bfd (targ_selvecs, targ64_selvecs): Add iamcu_elf32_vec,
- i386_pei_vec and x86_64_pei_vec for Solaris2/x86.
+ * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PROCSTAT_AUXV
+ notes.
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
+2016-06-24 John Baldwin <jhb@xxxxxxxxxxx>
- * elfnn-aarch64.c (aarch64_tls_transition_without_check): Add
- relax transitions for TLSDESC_ADD, TLSDESC_LDR, TLSDESC_OFF_G0_NC,
- TLSDESC_OFF_G1.
- (aarch64_tls_transition_without_check): Add relaxation support.
- (aarch64_reloc_got_type): Add support.
- (elfNN_aarch64_final_link_relocate): Likewise.
- (elfNN_aarch64_tls_relax): Likewise.
- (elfNN_aarch64_relocate_section): Likewise.
- (elfNN_aarch64_gc_sweep_hook): Likewise.
- (elfNN_aarch64_check_relocs): Likewise.
- * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
- (_bfd_aarch64_elf_resolve_relocation): Likewise.
+ * elf.c (elfcore_grok_note): Remove handling of NT_X86_XSTATE for
+ FreeBSD. Remove case for NT_FREEBSD_THRMISC.
+ (elfcore_grok_freebsd_psinfo): New function.
+ (elfcore_grok_freebsd_prstatus): New function.
+ (elfcore_grok_freebsd_note): New function.
+ (elf_parse_notes): Use "elfcore_grok_freebsd_note" for "FreeBSD"
+ notes.
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
+2016-06-24 Joel Brobecker <brobecker@xxxxxxxxxxx>
- * elfnn-aarch64.c (elfNN_aarch64_howto_table): Check overflow for
- BFD_RELOC_AARCH64_TLSDESC_OFF_G1.
+ * elflink.c: Check the value of BFD_SUPPORTS_PLUGINS rather
+ than its existance.
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
+2016-06-24 Alan Modra <amodra@xxxxxxxxx>
- * elfnn-aarch64.c(IS_AARCH64_TLS_RELAX_RELOC):
- Add relaxation support for TLSGD_MOVW_G0_NC and TLSGD_MOVW_G1.
- (aarch64_tls_transition_without_check): Likewise
- (elfNN_aarch64_tls_relax): Likwise.
+ * config.bfd: Delete mips vxworks patterns matched earlier.
+ Combine mips*-*-none with mips*-*-elf*.
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
+2016-06-21 Maciej W. Rozycki <macro@xxxxxxxxxx>
- * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Create GOT section
- for TLSLE_MOVW_TPREL_G(1, 1_NC, 2) relocation.
+ * elfxx-mips.c (mips_elf_perform_relocation): Call
+ `info->callbacks->einfo' rather than `*_bfd_error_handler' and
+ use the `%X%H' format for the cross-mode jump conversion error
+ message. Remove the full stop from the end of the message.
+ Continue processing rather than returning failure.
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
+2016-06-21 Graham Markall <graham.markall@xxxxxxxxxxxx>
- * reloc.c: Make AARCH64_TLSIE_MOVW_GOTTPREL_G1 and
- AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC defined in alphabetical order.
- * libbfd.h: Regenerate.
+ * archures.c: Remove bfd_mach_arc_nps400.
* bfd-in2.h: Likewise.
- * elfnn-aarch64.c (elfNN_aarch64_howto_table): Make
- TLSIE_MOVW_GOTTPREL_G1 check overflow.
- (aarch64_reloc_got_type): Add support for TLSIE_MOVW_GOTTPREL_G1
- and TLSIE_MOVW_GOTTPREL_G0_NC.
- (elfNN_aarch64_final_link_relocate): Likewise.
- (elfNN_aarch64_relocate_section): Likewise.
- (elfNN_aarch64_gc_sweep_hook): Likewise.
- (elfNN_aarch64_check_relocs): Likewise.
- * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
- (_bfd_aarch64_elf_resolve_relocation): Likewise.
-
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
-
- * elfnn-aarch64.c (aarch64_reloc_got_type): Add
- BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC support.
- (elfNN_aarch64_final_link_relocate): Likewise.
- (elfNN_aarch64_relocate_section): Likewise.
- (elfNN_aarch64_gc_sweep_hook): Likewise.
- (elfNN_aarch64_check_relocs): Likewise.
- * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
- (_bfd_aarch64_elf_resolve_relocation): Likewise.
-
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
-
- * reloc.c (BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC): New entry.
- * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
- BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC.
- * libbfd.h: Regenerate.
- * bfd-in2.h: Likewise
-
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
-
- * elfnn-aarch64.c (aarch64_reloc_got_type): Add
- BFD_RELOC_AARCH64_TLSGD_MOVW_G1 support.
- (elfNN_aarch64_final_link_relocate): Likewise.
- (elfNN_aarch64_relocate_section): Likewise.
- (elfNN_aarch64_gc_sweep_hook): Likewise.
- (elfNN_aarch64_check_relocs): Likewise.
- * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
- (_bfd_aarch64_elf_resolve_relocation): Likewise.
-
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
-
- * reloc.c (BFD_RELOC_AARCH64_TLSGD_MOVW_G1): New entry.
- * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
- BFD_RELOC_AARCH64_TLSGD_MOVW_G1.
- * bfd-in2.h: Regenerate.
- * libbfd.h: Likewise.
-
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
-
- * elfnn-aarch64.c (aarch64_reloc_got_type): Add
- BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC support.
- (elfNN_aarch64_final_link_relocate): Likewise.
- (elfNN_aarch64_gc_sweep_hook): Likewise.
- (elfNN_aarch64_check_relocs): Likewise.
- * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
- (_bfd_aarch64_elf_resolve_relocation): Likewise.
+ * cpu-arc.c (arch_info_struct): Likewise.
+ * elf32-arc.c (arc_elf_object_p, arc_elf_final_write_processing):
+ Likewise.
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
+2016-06-20 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- * reloc.c (BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC): New.
- * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry
- MOVW_GOTOFF_G0_NC.
- * libbfd.h: Regnerate.
- * bfd-in2.h: Regenerate.
+ PR ld/18250
+ PR ld/20267
+ * elflink.c: Include plugin.h if BFD_SUPPORTS_PLUGINS is
+ defined.
+ (elf_link_is_defined_archive_symbol): Call
+ bfd_link_plugin_object_p on unknown plugin object and use the
+ IR symbol table if the input is an IR object.
+ * plugin.c (bfd_link_plugin_object_p): New function.
+ * plugin.h (bfd_link_plugin_object_p): New prototype.
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
+2016-06-20 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- * elfnn-aarch64.c (aarch64_reloc_got_type): Add support
- for BFD_RELOC_AARCH64_MOVW_GOTOFF_G1.
- (elfNN_aarch64_gc_sweep_hook): Likewise.
- (elfNN_aarch64_check_relocs): Likewise
- * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
- (_bfd_aarch64_elf_resolve_relocation): Likewise
- (elfNN_aarch64_final_link_relocate): Likewise
+ PR ld/20276
+ * elflink.c (elf_link_add_object_symbols): Don't check alignment
+ on symbol from plugin dummy input.
-2015-010-02 Renlin Li <renlin.li@xxxxxxx>
+2016-06-18 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- * reloc.c (BFD_RELOC_AARCH64_MOVW_GOTOFF_G1): New.
- * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
- MOVW_GOTOFF_G1.
- * libbfd.h: Regenerate.
+ * bfd.c (bfd_plugin_format): Rename bfd_plugin_uknown to
+ bfd_plugin_unknown.
+ * bfd-in2.h: Regenerated.
+ * plugin.c (bfd_plugin_object_p): Replace bfd_plugin_uknown
+ with bfd_plugin_unknown.
+
+2016-06-18 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+
+ PR ld/20253
+ * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add an
+ bfd_boolean argument.
+ * elf-ifunc.c (_bfd_elf_create_ifunc_sections): Replace
+ "shared object" with "PIC object" in comments.
+ (_bfd_elf_allocate_ifunc_dyn_relocs): Updated. Replace
+ "shared object" with "PIC object" in comments. Avoid PLT if
+ requested. Generate dynamic relocations for non-GOT references.
+ Make room for the special first entry in PLT and allocate PLT
+ entry only for PLT and PC-relative references. Store dynamic
+ GOT relocations in .rel[a].iplt section for static executables.
+ If PLT isn't used, always use GOT for symbol value. Don't
+ allocate GOT entry if it isn't used.
+ * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
+ count only in the code section. Allocate dynamic pointer
+ relocation against STT_GNU_IFUNC symbol in the non-code section.
+ (elf_i386_adjust_dynamic_symbol): Increment PLT reference count
+ only for PC-relative references.
+ (elf_i386_allocate_dynrelocs): Pass TRUE to
+ _bfd_elf_allocate_ifunc_dyn_relocs.
+ (elf_i386_relocate_section): Allow R_386_GOT32/R_386_GOT32X
+ relocations against STT_GNU_IFUNC symbols without PLT. Generate
+ dynamic pointer relocation against STT_GNU_IFUNC symbol in
+ the non-code section and store it in the proper REL section.
+ Don't allow non-pointer relocation against STT_GNU_IFUNC symbol
+ without PLT.
+ (elf_i386_finish_dynamic_symbol): Generate dynamic
+ R_386_IRELATIVE and R_386_GLOB_DAT GOT relocations against
+ STT_GNU_IFUNC symbols without PLT.
+ (elf_i386_finish_dynamic_sections): Don't handle local
+ STT_GNU_IFUNC symbols here.
+ (elf_i386_output_arch_local_syms): Handle local STT_GNU_IFUNC
+ symbols here.
+ (elf_backend_output_arch_local_syms): New.
+ * elf32-x86-64.c (elf_i386_check_relocs): Increment PLT reference
+ count only in the code section. Allocate dynamic pointer
+ relocation against STT_GNU_IFUNC symbol in the non-code section.
+ (elf_x86_64_adjust_dynamic_symbol): Increment PLT reference
+ count only for PC-relative references.
+ (elf_x86_64_allocate_dynrelocs): Pass TRUE to
+ _bfd_elf_allocate_ifunc_dyn_relocs.
+ (elf_x86_64_relocate_section): Allow R_X86_64_GOTPCREL,
+ R_X86_64_GOTPCRELX, R_X86_64_REX_GOTPCRELX and
+ R_X86_64_GOTPCREL64 relocations against STT_GNU_IFUNC symbols
+ without PLT. Generate dynamic pointer relocation against
+ STT_GNU_IFUNC symbol in the non-code section and store it in
+ the proper RELA section. Don't allow non-pointer relocation
+ against STT_GNU_IFUNC symbol without PLT.
+ (elf_x86_64_finish_dynamic_symbol): Generate dynamic
+ R_X86_64_IRELATIVE and R_X86_64_GLOB_DAT GOT relocations against
+ STT_GNU_IFUNC symbols without PLT.
+ (elf_x86_64_finish_dynamic_sections): Don't handle local
+ STT_GNU_IFUNC symbols here.
+ (elf_x86_64_output_arch_local_syms): Handle local STT_GNU_IFUNC
+ symbols here.
+ (elf_backend_output_arch_local_syms): New.
+ * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
+ Pass FALSE to _bfd_elf_allocate_ifunc_dyn_relocs.
+
+2016-06-17 Thomas Preud'homme <thomas.preudhomme@xxxxxxx>
+ Tony Wang <tony.wang@xxxxxxx>
+
+ * elf32-arm.c (elf32_arm_stub_long_branch_thumb2_only): Define stub
+ sequence.
+ (stub_long_branch_thumb2_only): Define stub.
+ (arm_stub_is_thumb): Add case for arm_stub_long_branch_thumb2_only.
+ (arm_stub_long_branch_thumb2_only): Likewise.
+ (arm_type_of_stub): Use arm_stub_long_branch_thumb2_only for Thumb-2
+ capable targets.
+
+2016-06-17 Jose E. Marchesi <jose.marchesi@xxxxxxxxxx>
+
+ * archures.c (bfd_mach_sparc_v8plusc): Define.
+ (bfd_mach_sparc_v9c): Likewise.
+ (bfd_mach_sparc_v8plusd): Likewise.
+ (bfd_mach_sparc_v9d): Likewise.
+ (bfd_mach_sparc_v8pluse): Likewise.
+ (bfd_mach_sparc_v9e): Likewise.
+ (bfd_mach_sparc_v8plusv): Likewise
+ (bfd_mach_sparc_v9v): Likewise.
+ (bfd_mach_sparc_v8plusm): Likewise.
+ (bfd_mach_sparc_v9m): Likewise.
+ (bfd_mach_sparc_v9_p): Adapt to v8plusm and v9m.
+ (bfd_mach_sparc_64bit_p): Likewise.
* bfd-in2.h: Regenerate.
+ * cpu-sparc.c (arch_info_struct): Add entries for
+ bfd_mach_sparc_v8plus{c,d,e,v,m} and bfd_mach_sparc_v9{c,d,e,v,m}.
+ * aoutx.h (machine_type): Handle bfd_mach_sparc_v8plus{c,d,e,v,m}
+ and bfd_mach_sparc_v9{c,d,e,v,m}.
+ * elf32-sparc.c (elf32_sparc_final_write_processing): Likewise.
+ * elfxx-sparc.c (_bfd_sparc_elf_object_p): Likewise.
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
-
- * elfnn-aarch64.c (aarch64_reloc_got_type): Add
- BFD_RELOC_AARCH64_LD_64_GOTOFF_LO15 support.
- (elfNN_aarch64_gc_sweep_hook): Likewise.
- (elfNN_aarch64_check_relocs): Likewise
- * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
- (_bfd_aarch64_elf_resolve_relocation): Likewise
- (elfNN_aarch64_final_link_relocate): Calculate offset within GOT.
-
-2015-10-02 Renlin Li <renlin.li@xxxxxxx>
-
- * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Change if to
- switch statement.
+2016-06-16 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-2015-10-01 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/19031
- * elf64-x86-64.c (elf_x86_64_check_relocs): Set
- pointer_equality_needed for R_X86_64_PC32 reloc in non-code
- sections.
-
-2015-10-01 Renlin Li <renlin.li@xxxxxxx>
-
- * elfnn-aarch64.c (elfNN_aarch64_output_plt_map): Remove.
- (elfNN_aarch64_output_arch_local_syms): Emit AARCH64_MAP_INSN once.
-
-2015-10-01 Kaz Kojima <kkojima@xxxxxxxxxxxxxx>
-
- * config.bfd (targ_selvecs): Remove sh_elf32_vec and
- sh_elf32_le_vec from sh*-*-linux cases.
+ * elf32-i386.c (elf_i386_check_relocs): Don't check undefined
+ symbols for relocations against IFUNC symbols.
+ * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
-2015-10-01 Alan Modra <amodra@xxxxxxxxx>
+2016-06-16 Marcin Kościelnicki <koriakin@xxxxxxxx>
- PR ld/19013
- * elflink.c (_bfd_elf_merge_sections): Revert last change.
+ * elf32-s390.c (elf_s390_finish_dynamic_sections): Include
+ .rela.iplt in DT_PLTRELSZ.
+ * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise,
+ for DT_PLTRELSZ and DT_RELASZ as well.
-2015-09-30 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+2016-06-16 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- PR ld/19031
- * elf32-i386.c (elf_i386_check_relocs): Set
- pointer_equality_needed for R_386_PC32 reloc in non-code
- sections.
+ * elf32-i386.c (elf_i386_check_relocs): Skip relocations in
+ non-loaded, non-alloced sections.
+ * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
-2015-09-30 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+2016-06-15 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- PR ld/19013
- * elflink.c (_bfd_elf_merge_sections): Only merge input bfds
- that have the compatible ELF machine code with the output bfd.
+ * elf32-i386.c (elf_i386_check_relocs): Check SEC_ALLOC before
+ allocating dynamic relocation.
+ * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
-2015-09-30 Alan Modra <amodra@xxxxxxxxx>
+2016-06-14 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@xxxxxxxxx>
- PR ld/19013
- * elflink.c (_bfd_elf_merge_sections): Only merge input bfds that
- will be handled by elf_link_input_bfd. Rename abfd param to obfd.
+ PR ld/20254
+ * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust reloc
+ offsets until reloc_toaddr.
-2015-09-30 Rich Felker <dalias@xxxxxxxx>
+2016-06-14 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- * config.bfd (targ_selvecs): Add fdpic and misc targets
- for sh*-*-linux*.
+ * elf32-i386.c (elf_i386_reloc_type_class): Check R_386_IRELATIVE.
+ Don't check symbol type for STN_UNDEF symbol index.
+ * elf64-x86-64.c (elf_x86_64_reloc_type_class): Check
+ R_X86_64_IRELATIVE. Don't check symbol type for STN_UNDEF symbol
+ index.
-2015-09-29 Andrew Stubbs <ams@xxxxxxxxxxxxxxxx>
- H.J. Lu <hongjiu.lu@xxxxxxxxx>
+2016-06-14 Thomas Preud'homme <thomas.preudhomme@xxxxxxx>
- PR binutils/19020
- * bfd.c (bfd_convert_section_contents): Add ptr_size parameter.
- * bfd-in2.h: Regenerated.
+ * elf32-arm.c (using_thumb_only): Force review of arch check logic for
+ new architecture.
+ (using_thumb2): Try Tag_THUMB_ISA_use first and check
+ for exact arch value then. Force review of arch check logic for new
+ architecture.
+ (arch_has_arm_nop): Update and fix arch check logic. Force review of
+ that logic for new architecture.
+ (arch_has_thumb2_nop): Remove.
+ (elf32_arm_tls_relax): Use using_thumb2 instead of above function.
+ (elf32_arm_final_link_relocate): Likewise but using thumb2.
-2015-08-11 Peter Zotov <whitequark@xxxxxxxxxxxxxx>
-
- PR ld/18759
- * elf32-or1k.c (R_OR1K_32_PCREL): Set pcrel_offset to TRUE.
- (R_OR1K_16_PCREL): Likewise.
- (R_OR1K_8_PCREL): Likewise.
-
-2015-09-23 Nick Clifton <nickc@xxxxxxxxxx>
-
- * bout.c (b_out_slurp_reloc_table): Cast constant to unsigned in
- order to avoid problems with left shifting negative values.
- (abs32code): Likewise.
- * mach-o.c (FILE_ALIGN): Likewise.
- * coff-rs6000.c (xcoff_debug_sections): Delete unused static
- array.
- * elf32-visium.c (visium_reloc_map): Likewise.
- * elf32-arm.c (elf32_arm_final_link_relocate): Remove useless
- calls to abs function.
- * elf32-frv.c (_frvfdpic_relax_tls_entries): Likewise.
- * elf32-score.c (score_elf_final_link_relocate): Likewise.
- * elf32-score7.c (score_elf_final_link_relocate): Likewise.
- * elf32-i860.c (i860_howto_pc26_reloc): Use multiplication instead
- of shifting to create a negative mask.
- * elf32-msp430.c (elf_backend_special_sections): Define.
- * elfxx-mips.c (got_ofst_reloc_p): Delete unused function.
- (got_hi16_reloc_p): Delete unused function.
- * ppcboot.c (ppcboot_bfd_print_private_bfd_data): Fix test of
- partition name.
-
-2015-09-23 Nick Clifton <nickc@xxxxxxxxxx>
-
- PR binutils/15835
- * elf-bfd.h (struct elf_section_list): New structure.
- (struct elf_obj_tdata): Replace symtab_shndx_hdr with
- symtab_shndx_list. Delete symtab_shndx_section.
- (elf_symtab_shndx): Replace macro with elf_symtab_shndx_list.
- * elf.c (bfd_elf_get_syms): If symtab index sections are present,
- scan them for the section that matches the provided symbol table.
- (bfd_section_from_shdr): Record all SHT_SYMTAB_SHNDX sections.
- (assign_section_numbers): Use the first symtab index table in the
- list.
- (_bfd_elf_compute_section_file_positions): Replace use of
- symtab_shndx_hdr with use of symtab_shndx_list.
- (find_section_in_list): New function.
- (assign_file_postions_except_relocs): Use new function.
- (_bfd_elf_copy_private_symbol_data): Likewise.
- (swap_out_syms): Handle multiple symbol table index sections.
- * elf32-m32c.c (m32c_elf_relax_section): Replace use of
- symtab_shndx_hdr with use of symtab_shndx_list.
- * elf32-rl78.c (rl78_elf_relax_section): Likewise.
- * elf32-rx.c (rx_relax_section): Likewise.
- * elf32-v850.c (v850_elf_relax_delete_bytes): Likewise.
- * elflink.c (bfd_elf_final_link): Likewise.
+2016-06-14 Alan Modra <amodra@xxxxxxxxx>
-2015-09-21 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- * bfd.c (bfd_update_compression_header): Use bfd_put_32 on
- ch_type.
- (bfd_check_compression_header): Use bfd_get_32 on ch_type.
- (bfd_convert_section_contents): Use bfd_get_32 and bfd_put_32
- on ch_type.
-
-2015-09-20 Rich Felker <dalias@xxxxxxxx>
-
- * elflink.c (_bfd_elf_link_create_dynamic_sections): Don't create
- .interp when info->nointerp.
- (bfd_elf_size_dynamic_sections): Adjust assert.
- * elf32-arm.c (elf32_arm_size_dynamic_sections): Don't size .interp
- when info->nointerp.
- * elf32-bfin.c (elf32_bfinfdpic_size_dynamic_sections): Likewise.
- * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
- * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
- * elf32-frv.c (elf32_frvfdpic_size_dynamic_sections): Likewise.
- * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
- * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
- * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
- * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
- * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
- * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
- * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
- * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
- * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
- * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
- * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
- * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
- * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
- * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
- * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
- * elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Likewise.
- * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
- * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
- * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
- * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
- * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
- * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
- * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
- * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
- * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
- * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
- * elfnn-ia64.c (elfNN_ia64_size_dynamic_sections): Likewise.
- * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
- * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
- * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
-
-2015-09-18 Doug Evans <xdje42@xxxxxxxxx>
-
- * targets.c (enum bfd_flavour): Add comment.
- (bfd_flavour_name): New function.
+ * bfd-in.h (bfd_my_archive): Delete.
* bfd-in2.h: Regenerate.
-2015-09-18 Alan Modra <amodra@xxxxxxxxx>
-
- * elf64-ppc.h (struct ppc64_elf_params <tls_get_addr_opt>): Rename
- from no_tls_get_addr_opt.
- * elf64-ppc.c: Update for rename and inversion of tls_get_addr_opt.
- (ppc64_elf_tls_setup): Set tls_get_addr_opt to 0 only when at
- default of -1.
-
-2015-09-17 Alan Modra <amodra@xxxxxxxxx>
+2016-06-14 Alan Modra <amodra@xxxxxxxxx>
+
+ PR ld/20241
+ * archive.c (open_nested_file): Set my_archive.
+ * bfd.c (_bfd_default_error_handler <%B>): Exclude archive file name
+ for thin archives.
+ * bfdio.c (bfd_tell): Don't adjust origin for thin archives.
+ (bfd_seek): Likewise.
+ * bfdwin.c (bfd_get_file_window): Likewise.
+ * cache.c (cache_bmmap): Likewise.
+ (bfd_cache_lookup_worker): Don't look in my_archive for thin archives.
+ * mach-o.c (bfd_mach_o_follow_dsym): Don't open my_archive for
+ thin archives.
+ * plugin.c (try_claim): Likewise.
+ * xcofflink.c (xcoff_link_add_dynamic_symbols): Use import path of
+ file within thin archive, not the archive.
+
+2016-06-13 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- PR 18867
- * elflink.c (elf_link_adjust_relocs): Correct start of insertion
- sort main loop.
+ PR ld/20244
+ * elf32-i386.c (elf_i386_relocate_section): Add the .got.plt
+ section address for R_386_GOT32/R_386_GOT32X relocations against
+ IFUNC symbols if there is no base register and return error for
+ PIC.
-2015-09-16 Alan Modra <amodra@xxxxxxxxx>
+2016-06-13 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- PR 18867
- * elflink.c (elf_link_adjust_relocs): Modify insertion sort to
- insert a run. Return status in case of malloc failure.
- Adjust callers.
+ * elf32-i386.c (elf_i386_relocate_section): Simplify IFUNC
+ GOT32 adjustment for static executables.
-2015-09-15 Max Filippov <jcmvbkbc@xxxxxxxxx>
+2016-06-13 Maciej W. Rozycki <macro@xxxxxxxxxx>
- * elf32-xtensa.c (elf_xtensa_be_plt_entry)
- (elf_xtensa_le_plt_entry): Emit 'entry' instruction only for
- windowed ABI.
- (elf_xtensa_create_plt_entry): Generate 'l32r' offsets and fix
- up instructions according to ABI.
+ * elf32-mips.c (elf_mips_gnu_pcrel32): Update comment.
-2015-09-14 Rich Felker <dalias@xxxxxxxx>
+2016-06-13 Cupertino Miranda <cmiranda@xxxxxxxxxxxx>
- * elf32-sh.c (sh_elf_relocate_section): Set EF_SH_PIC flag
- instead of clearing it on cross-section relocations.
- (sh_elf_merge_private_data): Clear EF_SH_PIC flag by default.
+ * elf32-arc.c (elf_arc_relocate_section): Fixed condition.
-2015-09-12 Helge Deller <deller@xxxxxx>
+2016-06-13 Cupertino Miranda <cmiranda@xxxxxxxxxxxx>
- PR ld/18514
- * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Set .plt entry
- size to 0.
+ * elf32-arc.c (elf_arc_finish_dynamic_sections): Changed.
-2015-09-09 Jiong Wang <jiong.wang@xxxxxxx>
+2016-06-13 Cupertino Miranda <cmiranda@xxxxxxxxxxxx>
- * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Sort alphabetically.
+ * elf32-arc.c (arc_local_data, arc_local_data): Removed.
+ (SECTSTART): Changed.
+ (elf_arc_relocate_section): Fixed mistake in PIE related
+ condition.
+ (elf_arc_size_dynamic_sections): Changed DT_RELENT to DT_RELAENT.
-2015-09-09 Jiong Wang <jiong.wang@xxxxxxx>
+2016-06-13 Cupertino Miranda <cmiranda@xxxxxxxxxxxx>
- * elfnn-aarch64.c (aarch64_tls_transition_without_check): Support three
- TLS local dynamic traditional relocations types.
- (elfNN_aarch64_tls_relax): Support TLS local dynamic traditional to
- local executable relaxation.
+ * elf32-arc.c (elf32_arc_reloc_type_class): Defined function to
+ enable support for "-z combreloc" and DT_RELACOUNT.
+ (elf_backend_reloc_type_class): Likewise
-2015-09-03 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+2016-06-11 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Remove
- convert_mov_to_lea.
+ PR ld/20244
+ * elf32-i386.c (elf_i386_relocate_section): When relocating
+ R_386_GOT32, return error without a base register for PIC and
+ subtract the .got.plt section address only with a base register.
-2015-09-02 H.J. Lu <hongjiu.lu@xxxxxxxxx>
+2016-06-10 Alan Modra <amodra@xxxxxxxxx>
+
+ * elf-strtab.c (struct strtab_save): Use size_t for "size".
+ (struct elf_strtab_hash): Likewise for "size" and "alloced".
+ (_bfd_elf_strtab_init): Formatting.
+ (_bfd_elf_strtab_add): Return size_t rather than bfd_size_type.
+ (_bfd_elf_strtab_addref): Take size_t idx param.
+ (_bfd_elf_strtab_delref, _bfd_elf_strtab_refcount): Likewise.
+ (_bfd_elf_strtab_offset): Likewise.
+ (_bfd_elf_strtab_clear_all_refs): Use size_t idx.
+ (_bfd_elf_strtab_save): Use size_t "idx" and "size" vars.
+ (_bfd_elf_strtab_restore, _bfd_elf_strtab_emit): Similarly.
+ (_bfd_elf_strtab_finalize): Similarly.
+ * elf-bfd.h (_bfd_elf_strtab_add): Update prototypes.
+ (_bfd_elf_strtab_addref, _bfd_elf_strtab_delref): Likewise.
+ (_bfd_elf_strtab_refcount, _bfd_elf_strtab_offset): Likewise.
+ * elf.c (bfd_elf_get_elf_syms): Calculate symbol buffer size
+ using bfd_size_type.
+ (bfd_section_from_shdr): Delete amt.
+ (_bfd_elf_init_reloc_shdr): Likewise.
+ (_bfd_elf_link_assign_sym_version): Likewise.
+ (assign_section_numbers): Use size_t reloc_count.
+ * elflink.c (struct elf_symbuf_head): Use size_t "count".
+ (bfd_elf_link_record_dynamic_symbol): Use size_t for some vars.
+ (elf_link_is_defined_archive_symbol): Likewise.
+ (elf_add_dt_needed_tag): Likewise.
+ (elf_finalize_dynstr): Likewise.
+ (elf_link_add_object_symbols): Likewise.
+ (bfd_elf_size_dynamic_sections): Likewise.
+ (elf_create_symbuf): Similarly.
+ (bfd_elf_match_symbols_in_sections): Likewise.
+ (elf_link_swap_symbols_out): Likewise.
+ (elf_link_check_versioned_symbol): Likewise.
+ (bfd_elf_gc_record_vtinherit): Likewise.
+ (bfd_elf_gc_common_finalize_got_offsets): Likewise.
- * elf32-i386.c (R_386_irelative): Renamed to ...
- (R_386_ext2): This.
- (R_386_vt_offset): Updated.
- (elf_i386_rtype_to_howto): Likewise.
- (elf_i386_relocate_section): Likewise.
+2016-06-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@xxxxxxxxx>
-2015-09-01 H.J. Lu <hongjiu.lu@xxxxxxxxx>
-
- PR ld/18900
- * elf32-i386.c (elf_i386_link_hash_entry): Add
- func_pointer_refcount.
- (elf_i386_link_hash_newfunc): Clear func_pointer_refcount.
- (elf_i386_get_local_sym_hash): Likewise.
- (elf_i386_copy_indirect_symbol): Also copy
- func_pointer_refcount.
- (elf_i386_check_relocs): Increment func_pointer_refcount.
- (elf_i386_gc_sweep_hook): Decrement func_pointer_refcount.
- (elf_i386_allocate_dynrelocs): Don't create the PLT entry if
- there are only function pointer relocations which can be
- resolved at run-time. Keep dynanamic relocations for run-time
- function pointer initialization.
- (elf_i386_relocate_section): Copy dynamic function pointer
- relocations.
- * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add
- func_pointer_refcount.
- (elf_x86_64_link_hash_newfunc): Clear func_pointer_refcount.
- (elf_x86_64_get_local_sym_hash): Likewise.
- (elf_x86_64_copy_indirect_symbol): Also copy
- func_pointer_refcount.
- (elf_x86_64_check_relocs): Increment func_pointer_refcount.
- (elf_x86_64_gc_sweep_hook): Decrement func_pointer_refcount.
- (elf_x86_64_allocate_dynrelocs): Don't create the PLT entry if
- there are only function pointer relocations which can be
- resolved at run-time. Keep dynanamic relocations for run-time
- function pointer initialization.
- (elf_x86_64_relocate_section): Copy dynamic function pointer
- relocations.
-
-2015-09-01 Alan Modra <amodra@xxxxxxxxx>
-
- * elf64-ppc.c (ppc64_elf_maybe_function_sym): Adjust symbol value
- if .opd section has been edited.
-
-2015-09-01 Alan Modra <amodra@xxxxxxxxx>
-
- PR 18878
- * elf64-ppc.c (ARRAY_SIZE): Define. Use throughout.
- (enum ppc_stub_type): Add ppc_stub_save_res.
- (struct map_stub): Add "next" and "needs_save_res".
- (struct ppc_link_hash_entry): Add "save_res" flag.
- (struct ppc_link_hash_table): Add "group".
- (sfpr_define): Add stub_sec param. Define symbol in stub_sec if
- stub_sec is non-null. Set "save_res".
- (save_res_funcs): Make file scope, rename from funcs. Adjust uses.
- (ppc64_elf_adjust_dynamic_symbol): Prohibit plt call to save_res syms.
- (ppc_build_one_stub): Handle ppc_stub_save_res.
- (ppc_size_one_stub): Set stub type to ppc_size_one_stub on finding
- stub for linker defined save_res sym.
- (group_sections): Init new fields of struct map_stub.
- (ppc64_elf_size_stubs): Reserve space for save/restore func copy.
- (ppc64_elf_build_stubs): Copy save/restore funcs to groups. Emit
- alias syms too.
- (ppc64_elf_relocate_section): Set destination for ppc_stub_save_res.
-
-2015-08-31 Alan Modra <amodra@xxxxxxxxx>
-
- * elf64-ppc.c (get_r2off): Return -1 on error.
- (ppc_build_one_stub): Adjust for get_r2off change. Don't emit
- addi r2,r2,0 on r2off stubs when the low 16-bit delta is zero.
- (ppc_size_one_stub): Corresponding size changes for r2off stubs.
- Add condition in test for -R objects.
-
-2015-08-31 Alan Modra <amodra@xxxxxxxxx>
-
- * section.c (section_id): Make file scope.
- (bfd_get_next_section_id): New function.
- * elf64-ppc.c (struct map_stub): Remove toc_off field. Move decl.
- (struct ppc_stub_hash_entry): Delete stub_sec and id_sec. Add
- group. Update all uses.
- (struct ppc_link_hash_table): Delete top_id, top_index, and
- input_list. Add sec_info_arr_size. Rename stub_group to
- sec_info, and make group info indirect. Update stub_group refs
- throughout file.
- (ppc_add_stub): Don't look for stub_sec on link_sec stub_group
- entry.
- (ppc_build_one_stub): Delete FIXME.
- (ppc64_elf_setup_section_lists): Size htab->sec_info for all
- sections, not just input sections. Don't create htab->input_list.
- (ppc64_elf_next_input_section): Update to use sec_info union as
- list pointer.
- (PREV_SEC): Delete.
- (group_sections): Pass "info" param rather than "htab". Iterate
- over output sections rather than input_list. Use sec_info union
- as list pointers. Alloc atruct map_stub, and return fail status.
- * bfd-in2.h: Regenerate.
+ PR ld/20221
+ * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust syms
+ and relocs only if shrinking occurred.
-2015-08-31 Alan Modra <amodra@xxxxxxxxx>
+2016-06-08 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- * elflink.c (elf_sort_symbol): Use correctly sized type for
- calculating signed section->id difference.
- (elf_link_add_object_symbols): Likewise.
- * pef.c (bfd_pef_scan_start_address): Warning fix.
- * vms-alpha.c (vms_new_section_hook): Likewise.
+ * elf64-i386.c (elf_i386_link_hash_entry): Add tls_get_addr.
+ (elf_i386_link_hash_newfunc): Initialize tls_get_addr to 2.
+ (elf_i386_check_tls_transition): Check indirect call and direct
+ call with the addr32 prefix for general and local dynamic models.
+ Set the tls_get_addr feild.
+ (elf_i386_convert_load_reloc): Always use addr32 prefix for
+ indirect ___tls_get_addr call via GOT.
+ (elf_i386_relocate_section): Handle GD->LE, GD->IE and LD->LE
+ transitions with indirect call and direct call with the addr32
+ prefix.
-2015-08-31 Alan Modra <amodra@xxxxxxxxx>
+2016-06-07 Marcin Kościelnicki <koriakin@xxxxxxxx>
- * elf32-nds32.c (nds32_convert_32_to_16_alu1): Warning fix.
- (find_relocs_at_address_addr): Make "reloc_type" an enum.
- (nds32_elf_relax_delete_blanks): Warning fix.
- (nds32_elf_relax_loadstore): Correct loop bound.
+ * elf32-s390.c (elf_s390_finish_dynamic_symbol): Fix comment.
+ * elf64-s390.c (elf_s390x_plt_entry): Fix comment.
+ (elf_s390_relocate_section): Fix comment.
+ (elf_s390_finish_dynamic_sections): Fix initialization of fixed
+ .got.plt entries.
-2015-08-31 Alan Modra <amodra@xxxxxxxxx>
+2016-06-07 Ulrich Weigand <ulrich.weigand@xxxxxxxxxx>
- * section.c (struct bfd_section): Make "id" and "index" unsigned.
- * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Adjust local var to suit.
- * elf.c (elf_map_symbols): Likewise.
- * elf64-ppc.c (sym_exists_at): Make "id" param unsigned.
- (struct ppc_link_hash_table): Make "top_id" and "top_index" unsigned.
- (ppc64_elf_setup_section_lists): Ditto for local vars.
- * elf32-arm.c: Similarly to elf64-ppc.c.
- * elf32-avr.c: Likewise.
- * elf32-hppa.c: Likewise.
- * elf32-m68hc1x.c: Likewise.
- * elf32-metag.c: Likewise.
- * elf32-nios2.c: Likewise.
- * elfnn-aarch64.c: Likewise.
- * simple.c (struct saved_offsets): Make "section_count" unsigned.
+ * elf64-s390.c (elf_s390_finish_dynamic_sections): Subtract plt
+ section offset when calculation the larl operand in the first PLT
+ entry.
+
+2016-06-07 Alan Modra <amodra@xxxxxxxxx>
+
+ * cpu-powerpc.c (powerpc_compatible): Allow bfd_mach_ppc_vle entry
+ to match other 32-bit archs.
+ * elf32-ppc.c (_bfd_elf_ppc_set_arch): New function.
+ (ppc_elf_object_p): Call it.
+ (ppc_elf_special_sections): Use APUINFO_SECTION_NAME. Fix
+ overlong line.
+ (APUINFO_SECTION_NAME, APUINFO_LABEL): Don't define here.
+ * elf64-ppc.c (ppc64_elf_object_p): Call _bfd_elf_ppc_set_arch.
+ * bfd-in.h (_bfd_elf_ppc_at_tls_transform,
+ _bfd_elf_ppc_at_tprel_transform): Move to..
+ * elf-bfd.h: ..here.
+ (_bfd_elf_ppc_set_arch): Declare.
* bfd-in2.h: Regenerate.
-2015-08-27 Alan Modra <amodra@xxxxxxxxx>
+2016-06-06 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- PR 18867
- * elf64-alpha.c (elf64_alpha_sort_relocs_p): New function.
- (elf_backend_sort_relocs_p): Define.
+ * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add tls_get_addr.
+ (elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 2.
+ (elf_x86_64_check_tls_transition): Check indirect call and
+ direct call with the addr32 prefix for general and local dynamic
+ models. Set the tls_get_addr feild.
+ (elf_x86_64_convert_load_reloc): Always use addr32 prefix for
+ indirect __tls_get_addr call via GOT.
+ (elf_x86_64_relocate_section): Handle GD->LE, GD->IE and LD->LE
+ transitions with indirect call and direct call with the addr32
+ prefix.
-2015-08-26 Alan Modra <amodra@xxxxxxxxx>
+2016-06-04 Christian Groessler <chris@xxxxxxxxxxxxx>
- PR 18867
- * elflink.c (cmp_ext32l_r_offset, cmp_ext32b_r_offset): Delete.
- (cmp_ext64l_r_offset, cmp_ext64b_r_offset): Delete.
- (ext32l_r_offset, ext32b_r_offset, ext64l_r_offset, ext64b_r_offset):
- New functions.
- (elf_link_adjust_relocs): Use an insertion sort to sort relocs.
+ * coff-z8k.c (extra_case): Fix range check for R_JR relocation.
-2015-08-26 Matthew Fortune <matthew.fortune@xxxxxxxxxx>
+2016-06-02 Nick Clifton <nickc@xxxxxxxxxx>
- PR ld/18401
- * elfxx-mips.c (bfd_mips_isa_ext_mach): New function: Converts an
- ISA value to a bfd machine number.
- (bfd_mips_isa_ext): Update the ISA level and revision if
- necessary. Use mips_mach_extends_p to decide if the ISA extension
- needs to be set.
- (_bfd_mips_elf_merge_private_bfd_data): Allow the ISA extension to
- be inferred from the ABI setting. Set the ISA level from the
- maximum of the incoming and outgoing ISA levels.
+ PR target/20088
+ * cpu-arm.c (processors): Add "arm_any" type to match any ARM
+ architecture.
+ (arch_info_struct): Likewise.
+ (architectures): Likewise.
-2015-08-25 Nick Clifton <nickc@xxxxxxxxxx>
+2016-06-02 Vineet Gupta <Vineet.Gupta1@xxxxxxxxxxxx>
- PR binutils/18854
- * elf.c (bfd_section_from_shdr): Replace assertions with warnings
- about multiple symbol tables.
+ * config.bfd: Replace -uclibc with *.
-2015-08-25 Renlin Li <renlin.li@xxxxxxx>
+2016-06-02 H.J. Lu <hongjiu.lu@xxxxxxxxx>
- * reloc.c (BFD_RELOC_AARCH64_LD64_GOTOFF_LO15): Use LP64 instead of
- ILP64.
- * bfd-in2.h: Regenerate.
+ * elf64-x86-64.c: Replace data32 with data16 in comments.
-2015-08-22 Alan Modra <amodra@xxxxxxxxx>
-
- * elf.c (_bfd_elf_slurp_version_tables): Always init vd_nodename.
- Don't copy fields not set by _bfd_elf_swap_verdef_in.
-
-2015-08-19 Jiong Wang <jiong.wang@xxxxxxx>
-
- * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize new relocation
- types, including BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12,
- BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
- BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12,
- BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
- BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12,
- BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
- BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12,
- BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC.
- (elfNN_aarch64_final_link_relocate): Likewise.
- * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
- (_bfd_aarch64_elf_resolve_relocation): Likewise.
-
-2015-08-19 Jiong Wang <jiong.wang@xxxxxxx>
-
- * reloc.c (BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12,
- BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
- BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12,
- BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
- BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12,
- BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC.
- BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12,
- BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): New entries.
- * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise.
- * bfd-in2.h: Regenerate.
- * libbfd.h: Regenerate.
+2016-05-31 Alan Modra <amodra@xxxxxxxxx>
-2015-08-19 Jiong Wang <jiong.wang@xxxxxxx>
-
- PR ld/18276
- * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize new relocation
- types, including BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12,
- BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0,
- BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC,
- BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1,
- BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC,
- BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2.
- (elfNN_aarch64_final_link_relocate): Likewise.
- * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
- (_bfd_aarch64_elf_resolve_relocation): Likewise.
-
-2015-08-19 Jiong Wang <jiong.wang@xxxxxxx>
-
- * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12,
- BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0,
- BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC,
- BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1,
- BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC,
- BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2): New entries.
- * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise.
- * bfd-in2.h: Regenerate.
- * libbfd.h: Regenerate.
+ PR ld/20159
+ PR ld/16467
+ * elflink.c (_bfd_elf_merge_symbol): Revert PR16467 change.
+ (_bfd_elf_add_default_symbol): Don't indirect to/from defined
+ symbol given a version by a script different to the version
+ of the symbol being added.
+ (elf_link_add_object_symbols): Use _bfd_elf_strtab_save and
+ _bfd_elf_strtab_restore. Don't fudge dynstr references.
+ * elf-strtab.c (_bfd_elf_strtab_restore_size): Delete.
+ (struct strtab_save): New.
+ (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): New functions.
+ * elf-bfd.h (_bfd_elf_strtab_restore_size): Delete.
+ (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): Declare.
-2015-08-19 Jiong Wang <jiong.wang@xxxxxxx>
+2016-06-01 Trevor Saunders <tbsaunde+binutils@xxxxxxxxxxxx>
- * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize
- BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC.
- (aarch64_reloc_got_type): Likewise.
- (elfNN_aarch64_final_link_relocate): Likewise.
[ *** diff truncated: 523981 lines dropped *** ]
############################################################################
Commit: 8b2ef03baf6964cd6248e01fc784ffa17be74119
URL: http://cgit.haiku-os.org/buildtools/commit/?id=8b2ef03baf69
Author: Jérôme Duval <jerome.duval@xxxxxxxxx>
Date: Sat Aug 5 14:32:14 2017 UTC
import binutils 2.28.1
----------------------------------------------------------------------------
############################################################################
Revision: btrev43123
Commit: 35041506a03bcbe38eafdd7cbffba4111c838fdc
URL: http://cgit.haiku-os.org/buildtools/commit/?id=35041506a03b
Author: Jérôme Duval <jerome.duval@xxxxxxxxx>
Date: Sun Aug 6 12:09:36 2017 UTC
Merge binutils 2.28.1
----------------------------------------------------------------------------