summaryrefslogtreecommitdiffstats
path: root/binutils-2.21
Commit message (Collapse)AuthorAgeFilesLines
* Remove old versions of binutils.Dan Albert2015-06-1711784-3740393/+0
| | | | Change-Id: If634d8d30cfa8c88ca3ba59691a0df4ee5596f85
* Fix extraneous warning about executable stack.Cary Coutant2014-12-022-3/+18
| | | | | | | | | | | | | | | | | | | | PR gold/17578 notes that gold will print a warning about an executable stack when the -z execstack option is given, even when there is no --warn_execstack option. The warning is completely useless and unexpected, since the user explicitly requested an executable stack, and did not even ask for warnings. This patch fixes that, and adds an extra warning when --warn_execstack and -z noexecstack are both given and an input file requires an executable stack. gold/ PR gold/17578 * layout.cc (Layout::layout_gnu_stack): Don't warn when -z execstack is given. (Layout::create_executable_stack_info): Warn when -z noexecstack is given but some inputs require executable stack. Change-Id: I7b15682af81d3c52057473d347f83a768e087ffa
* 2.21-2.23: Only quote arguments in pex-win32.c that need itRay Donnelly2014-03-171-9/+38
| | | | | | | | .. it always quoted all arguments, irrespective of whether there was a need to. This means the 32k limit is getting hit more often than it needs to. Change-Id: I5fb427cc3ad6a00a8099d3ed0fce1f43ed027f78
* [2.21, 2.22, 2.23] Backport of the patch for keeping lto sectionsAlexander Ivchenko2014-03-051-1/+2
| | | | | | | | | | | | when linking with "-r" options (ld bfd behaviour). 2012-10-16 Sriraman Tallam <tmsriram@google.com> * layout.cc (Layout::include_section): Keep sections marked SHF_EXCLUDE when doing relocatable links. Change-Id: Icc49c2b8e34097ec95d869a70d367ef6faf320ed Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
* [2.21], [2.22], [2.23] Backport of several patches for fixingAlexander Ivchenko2013-11-119-89/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | build of binutils with texinfo-5.0. 2013-01-06 Andreas Schwab <schwab@linux-m68k.org> * doc/c-mips.texi (MIPS Opts): Fix use of @itemx. * doc/c-score.texi (SCORE-Opts): Likewise. * doc/c-tic54x.texi (TIC54X-Directives): Likewise. 2013-03-14 Andreas Schwab <schwab@suse.de> * doc/c-arc.texi (ARC Directives): Revert last change and use @itemize instead of @table. * doc/c-arm.texi (ARM-Instruction-Set): Likewise. 2013-03-14 Nick Clifton <nickc@redhat.com> PR gas/15212 * doc/c-arc.texi (ARC Directives): Use @code instead of @bullte for table format. * doc/c-arm.texi (ARM-Instruction-Set): Likewise. Also add text to the @item directives. (ARM-Neon-Alignment): Move to correct place in the document. * doc/c-cr16.texi (CR16 Operand Qualifiers): Fix up table formatting. * doc/c-tic54x.texi (TIC54X-Subsyms): Correct use of @smallexample. 2013-01-04 Andreas Schwab <schwab@linux-m68k.org> * doc/binutils.texi (elfedit): Fix use of @itemx in @table. 2013-01-07 Patrice Dumas <pertusus@free.fr> * ld.texinfo: Replace @ with @@ when it is part of the text. Correct ordering of M68HC11 entry. * doc/binutils.texi: Fix ordering of top level nodes. Replace erroneous uses of @itemx with @item. * bfd.texinfo: Replace @ with @@ when it is part of the text. Change-Id: Ib60e0340bf8d3e3b29ff4e93d34c6ac389c78fca Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
* Add MXU support to binutils-2.21/2.22/2.23Iceberg Fu2013-08-155-4/+1199
| | | | Change-Id: Ibcc5b2ab16e640f7fd3d8a0420fec1bd91a6e6fa
* [2.21], [2.22], [2.23] Backport of the patch for fixing large symbol alignment.Alexander Ivchenko2013-06-064-3/+90
| | | | | | | | | | | | | | | 2013-06-05 Alexander Ivchenko <alexander.ivchenko@intel.com> gold/ * layout.cc (Layout::set_segment_offsets): Taking care of the case when the maximum segment alignment is larger than the page size. * testsuite/Makefile.am (large_symbol_alignment): Test that Gold correctly aligns the symbols with large alignemnt. * testsuite/Makefile.in: Regenerate. * testsuite/large_symbol_alignment.cc: New file. Change-Id: I2fe5b73b9e76050f0f42bbbc9086d0d5824c0020 Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
* [2.21] Backport patches from trunk for merging string literalsAndrew Hsieh2013-05-3110-24/+177
| | | | | | | | | | | | 2013-05-03 Alan Modra <amodra@bigpond.net.au> 2013-05-01 H.J. Lu <hjl.tools@gmail.com> 2013-05-01 Cary Coutant <ccoutant@google.com> 2013-04-29 Alexander Ivchenko <alexander.ivchenko@intel.com> See the same patch to 2.22/2.23 f69768d4c89186a859db6aa967f9bde047b50b6d for more details Change-Id: Ifb8582f1bee390fb26ce0f6fa56b8958fd589a9a
* Fix $NDK/tests/build/flto with binutils.2.21 ld.bfdAndrew Hsieh2013-02-161-0/+5
| | | | | | | | | | | | | | | | Error message reads ld.bfd: error: Source object ./obj/local/armeabi/objs/flto/flto.o.ironly has EABI version 0, but target ./obj/local/armeabi/flto has EABI version 5 Backport fix date: 2011/03/10 10:26:26; author: davek; state: Exp; lines: +5 -0 [PATCH] Fix issue from GCC PR47527: no ELF flags, EABI attribs, etc. in dummy IR BFD. ld/ChangeLog: 2011-03-10 Dave Korn <dave.korn.cygwin@gmail.com> * ldlang.c (lang_check): Don't run checks on dummy IR BFDs. Change-Id: I47f55fa71020cfe5a4245c24aecec03b6536c539
* Backport fixes for binutils-2.21/bfd pluginAndrew Hsieh2013-02-066-2/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | ---------------------------- revision 1.15 date: 2012/03/20 19:24:32; author: ktietz; state: Exp; lines: +37 -0 PR ld/12742 * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h. * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined. Add windows.h header include if HAVE_WINDOWS_H is defined. (dlerror): New static function if windows variant is used instead of dlfcn.h. (dlclose): Likewise. (dlopen): Likewise. (dlsym): Likewise. * configure: Regenerated. * config.in: Regenerated. ---------------------------- revision 1.295 date: 2012/10/13 14:17:10; author: hjl; state: Exp; lines: +2 -1 Replace -ldl with @lt_cv_dlopen_libs@ * Makefile.am (LIBDL): Replace -ldl with @lt_cv_dlopen_libs@. * configure.in (lt_cv_dlopen_libs): AC_SUBST. * Makefile.in: Regenerated. * configure: Likewise. Change-Id: I1d7f9545ce7f3de26062df50067067365eb2b13d
* Backport Pavel Chupin's fixes for mingw gold pluginsRay Donnelly2013-02-037-2/+79
| | | | | | | | | | | | | | | | | | | | | | | | | Changelog modified to reflect minor changes, for original patch and changelog, see the links. Thread starts in December: http://sourceware.org/ml/binutils/2012-12/msg00255.html ..continues into January: http://sourceware.org/ml/binutils/2013-01/msg00061.html ..and ends with the final version by Ian Lance Taylor: http://sourceware.org/ml/binutils/2013-01/msg00167.html ChangeLog: 2012-12-25 Pavel Chupin <[hidden email]> Fix mingw gold build with plugins enabled. * gold/Makefile.am: Replace -ldl with @DLOPEN_LIBS@. * gold/configure.ac: Export DLOPEN_LIBS, add headers check. * gold/plugin.cc: Handle non-dlfcn case. * gold/Makefile.in: Regenerate. * gold/config.in: Regenerate. * gold/configure: Regenerate. * gold/testsuite/Makefile.in: Regenerate.
* Backport for binutil-2.21 to respond to --with-gold-ldflagsAndrew Hsieh2012-12-304-4/+66
| | | | | | | | | | | | | | | This is needed to statically link libgcc and libstdc++ into gold 2011-09-20 Simon Baldwin &lt;simonb@google.com&gt; * configure.ac: Add new --with-gold-ldadd and --with-gold-ldflags configuration options. * configure: Regenerate. * Makefile.am: Handle GOLD_LDADD and GOLD_LDFLAGS. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. Change-Id: I279fa7c707519cedd994248c63cae13d3c73cd35
* Fix gold issue on fsck_msdos build when objects built by ICCPavel Chupin2012-11-081-0/+13
| | | | | | | | | | Backport layout.cc CVS rev. 1.185.2.3 from GNU 2.21 branch: * layout.cc (Layout::layout): If the output section flags change, update the ordering. Change-Id: Id9653366475eebdf432a03650388279bdb127382 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* Merge "Fix newer binutils not to assert on non-existence tag_FP_arch"Andrew Hsieh2012-10-233-5/+10
|\
| * Fix newer binutils not to assert on non-existence tag_FP_archAndrew Hsieh2012-10-233-5/+10
| | | | | | | | | | | | | | Used to be local NDK patch at $NDK/build/tools/toolchain-patches/ binutils/0001-Fix-newer-binutils-not-to-assert-on-non-existence-tag_FP_arch.patch Change-Id: I3804f43e8f365c7f9008347cf5b2d66c1255e6c0
* | Merge "Fix ld gc-sections"Andrew Hsieh2012-10-231-0/+3
|\ \
| * | Fix ld gc-sectionsAndrew Hsieh2012-10-231-0/+3
| |/ | | | | | | | | | | | | Used to be local NDK patch at $NDK/build/tools/toolchain-patches/ binutils/0001-Fix-ld-gc-sections.patch Change-Id: I3946edae82c315904f919f4c2f5f94b10a31aa37
* | Merge "Modify linker script generation for MIPS Android"Andrew Hsieh2012-10-234-29/+39
|\ \
| * | Modify linker script generation for MIPS AndroidAndrew Hsieh2012-10-234-29/+39
| |/ | | | | | | | | | | | | Used to be local NDK patch at $NDK/build/tools/toolchain-patches/ binutils/0001-Modify-linker-script-generation-for-MIPS-Android.patch Change-Id: I45a3f2293f354c000c0467bbe31a50d1aead3333
* | Merge "Fix win32 build"Andrew Hsieh2012-10-231-0/+2
|\ \
| * | Fix win32 buildAndrew Hsieh2012-10-231-0/+2
| |/ | | | | | | | | | | | | Used to be local NDK patch at $NDK/build/tools/toolchain-patches/ binutils/0001-Fix-win32-build.patch Change-Id: I54a0984942a684ed4f7a6bba8820ee6856b293d8
* | Five fixes for MIPS in elfxx-mips.c mipself.em and elf.cAndrew Hsieh2012-10-233-8/+31
|/ | | | | | | Used to be local NDK patch at $NDK/build/tools/toolchain-patches/ binutils/0001-Fix-elfxx-mips.c-mipself.em-and-elf.c-with-5-fixes.patch Change-Id: Ic0abd634686b19b1afe86bf177643236d1f656a7
* Provide __executable_start for PIEH.J. Lu2012-08-301-1/+1
| | | | | | | | | | | | Backport http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/elf.sc.diff?cvsroot= src&r1=1.114&r2=1.115 to provide __executable_start for PIE. Also see Change-Id: I43efa67f287f966e5e9cdd72c31ac63de0ba1a3c https://android-review.googlesource.com/#/c/42250/
* Fix ld.gold i586-mingw32msvcAndrew Hsieh2012-08-083-4/+4
| | | | | | | By adding cast where i586-mingw32msvc-gcc gives warnings later treated as errors Change-Id: I98325a9ffc90c151647439bcef343fac9e360770
* Fix ld.gold build with latest mingw 20120730Pavel Chupin2012-08-029-83/+97
| | | | | | | | | Backport patch 1.859 (CVS ChangeLog revision) Remove unused typedefs All changes are already in trunk Change-Id: I47826e83b37275bab77e94a8213aafbcc9d7de28 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* Removed unused variablesAndrew Hsieh2012-08-011-3/+0
| | | | | | | -Werror may fail compilation if variables defined but left unused The patch already appears in upstream Change-Id: Ie2310d3176d5514b92c5c6514856622a2c068c74
* Fix ld.gold mingw buildAndrew Hsieh2012-07-308-49/+308
| | | | | | | | | | | | | | | | | | | Back port fixes in 2.21.51 for mingw build: For systems w/o mmap support 1.29 config.in 1.62 configure.ac 1.65 configure 1.73 fileread.cc 1.3 mremap.c 1.142 output.cc 1.120 output.h For mingw specific 1.10 descriptos.cc 1.143 output.cc Change-Id: I40e088266c203106864f5a440d8bdf2ab295e547
* Fix error: unresolvable R_ARM_THM_CALL relocationAndrew Hsieh2012-07-231-7/+17
| | | | | | | | | | | Backport of fix in cvs binutils 1.277 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-arm.c.diff?cvsroot=src&r1=text&tr1=1.277&r2=text&tr2=1.276&f=u Related issue & thread http://code.google.com/p/android/issues/detail?id=35342 https://groups.google.com/forum/?fromgroups#!topic/android-ndk/HaLycHImqL8 Change-Id: Iee449ff9ed8effe6591aee5258eed502c7a484de
* Support decoding of symbols for plt entries on armChris Stratton2012-06-271-0/+15
| | | | | | | Fix to enable objdump to generate function@plt symbols for plt entries on arm as it already did for x86 Change-Id: I5b2997d82a53777b930d16a090dd355e403811be Signed-off-by: Chris Stratton <cs07024@gmail.com>
* Fixed binutils-2.21/gold build in MacOSXAndrew Hsieh2012-06-071-2/+2
| | | | | | | | The gcc 4.2.1 (Apple Inc. build 5666, dot 3) comes with Xcode 3.2.6 emits warning for "while (0);" and breaks the build (thanks to -Werror which treat warning as error). Change to "do {} while (0)" to fix it. Change-Id: I7515b57ea2a7b7aac073d6752aea4620f5a9cce1
* Fix a typo in https://android-review.googlesource.com/#/c/36585/Jing Yu2012-05-161-1/+1
| | | | Change-Id: I210af69414aefc7f9bdd8ffc1967d4539ff88369
* Fixed ld --gc-sections bug.Jing Yu2012-05-169-18/+86
| | | | Change-Id: Ib856c96ca91fea2860c872d81a15ebd496a42783
* Preserve the original p_align and p_flags if they are valid.Ben Cheng2012-05-111-2/+8
| | | | | | | | bfd/elf.c Status: backport http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf.c.diff?cvsroot=src&r1=1.552&r2=1.553 Change-Id: I7046260ece65494a337c6bbbeee620b761827299
* Fix a gold bug.Jing Yu2012-04-093-14/+21
| | | | | | | | | | | gold/icf.cc gold/icf.h Status: In upstream. Fix dangling pointer bug caused by calling c_str method of temporary string object. http://cygwin.com/ml/binutils/2011-02/msg00030.html Change-Id: If296a2c0adda0ab825bd248abdbe21ab0f071721
* Fix a few gold bugs.Jing Yu2012-03-2212-67/+227
| | | | Change-Id: Iac85fb0c38afd5f8d800ac08b30ae4790be09d0b
* Update binutils-2.21. Changes are the followingsJing Yu2012-02-1530-53/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gold/yyscript.y Status: Backport Owner: saugustine Backport upstream patch to fix INCLUDE syntax errors. http://sourceware.org/ml/binutils/2011-11/msg00089.html gold/dirsearch.cc gold/dirsearch.h gold/script.cc.cc Status: Backport Owner: saugustine Backport upstream patch to implement INCLUDE directive http://sourceware.org/ml/binutils/2011-11/msg00165.html gas/config/tc-arm.c gas/testsuite/gas/arm/attr-march-armv7.d include/opcode/arm.h Status: Upstream Owner: dougkwan Fix b/5803351 by merging relevant parts of: http://www.cygwin.com/ml/binutils-cvs/2011-04/msg00112.html gold/arm.cc Status: Upstream Owner: dougkwan Fix PIE crashes on ARM. http://sourceware.org/ml/binutils-cvs/2012-02/msg00012.html gas/as.c Status: Local for mobile release branch Owner: jingyu Allow .incbin by default. Change-Id: Ie13a05e621ad34e292bc0384b3a05b9f7f6d6f8d
* Add binutils-2.21.Jing Yu2011-12-2011767-0/+3737831
Use --enable-gold=default for dual linker support. Change-Id: Id1a744c7db58a0b5e7a3be174cdfa875f2f86e49