Commit Graph

56 Commits

Author SHA1 Message Date
Max Filippov
c842c9fd31 binutils: fix .init/.fini literals moving in xtensa gas
Despite the documentation and the comment in xtensa_move_literals, in
the presence of --text-section-literals and --auto-litpools literals are
moved from the separate literal sections into .init and .fini, because
the check in the xtensa_move_literals is incorrect.

This fixes build errors seen with projects that have .init/.fini and use
text-section-literals.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2016-02-18 02:37:02 +03:00
Max Filippov
b1459d123f binutils: fix .loc handling in xtensa gas
Binutils change 1058c7532d0b "Use signed data type for R_XTENSA_DIFF*
relocation offsets." changed signedness of BFD_RELOC_XTENSA_DIFF*
relocations substituted for BFD_RELOC_*. This made it impossible to
encode arbitrary 8-, 16- and 32-bit values, which broke e.g. debug info
encoding by .loc directive. Revert this part and add test.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2016-02-06 01:19:45 +03:00
Bryan Hundven
46c9c486d0 binutils: Update patches for binutils-2.26
This updates patches for 2.26. Most notably, the removal of the xtensa
patches which seem to be upstream in binutils now.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-02-04 23:50:19 -08:00
Kasumi Hanazuki
1ced27e223 patches/binutils: wcsncasecmp is provided by OSX >= 10.7
OSX SDK has a declaration for `wcsncasecmp` since 10.7, which conflicts with
the definition provided by the patch for binutils.

Signed-off-by: Kasumi Fukuda <kasumi@rollingapple.net>
2016-01-24 15:09:31 +09:00
Bryan Hundven
91520c2b36 patches/binutils: Sync patches with buildroot
The buildroot patches have xtensa for the supported versions of binutils
we use, and a few others that might help us keep away from host
polution.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-03 03:05:27 -08:00
Bryan Hundven
ba8713947e patches/binutils: Remove old patches for binutils
Since we removed older binutils versions, remove patches as well.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-01-03 01:22:02 -08:00
Bryan Hundven
6484adb13f binutils: add patch that fixes mac os x gold build
https://sourceware.org/bugzilla/show_bug.cgi?id=19281

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-26 09:38:05 -08:00
Ray Donnelly
f001b0605e darwin-host: Three build fixes for binutils 2.25{,.1}
1. Need to include <string> not <cstring> in gold's binary.cc
2. wcsncasecmp isn't always defined in Mac SDK
3. PTHREAD_ONCE_INIT is {0x30B1BCBA, {0}}, so can't be trivially
    assigned in an intializer list.

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-22 14:38:22 +00:00
Bryan Hundven
e78251b751 Merge pull request #253 from jcmvbkbc/xtensa-for-mainline-20151113
Add support for Xtensa architecture
2015-11-13 01:47:08 -08:00
Bryan Hundven
e4bb360748 file modes: Set files to be non-executable
I was going to start doing some autoconf work, and noticed that
configure.in was executable. Then I noticed Makefile.in was executable.

o.O

So, I ran ```find . -type f -executable``` and found a bunch of files
that shouldn't be set executable.

This commit makes them normal files again.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-12 23:18:04 -08:00
Max Filippov
3a659bb198 binutils: add xtensa-specific patches for 2.25.1
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-11-13 09:08:53 +03:00
Ray Donnelly
9ef1750f3c MinGW-w64: winpthreads doesn't have pthread_mutexattr_settype
It's only used as a hint, so excluding it shouldn't cause any problems.

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13 02:17:44 +00:00
Ray Donnelly
df02517fd7 binutils: Don't link to libfl as it's unnecessary
AM_PROG_LEX sets this for some weird reason; it should
look for a program only and not a library.  Then later
it gets linked to ar, ranlib, dlltool, windres, windmc
and itbl-test despite nothing in the code #include'ing
FlexLexer.h

This isn't a big deal but it did cause a build failure
on Cygwin as it triggered a bug with their flex package
dependencies which I reported at:

https://www.cygwin.com/ml/cygwin/2015-10/msg00433.html

Arguably I should remove all traces of LIBLEX in each
Makefile.am instead?

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13 02:17:43 +00:00
Ray Donnelly
3c95e3492a binutils: Fix typo
pthread_mutextattr_settype -> pthread_mutexattr_settype
.. I'm not sure why this didn't fail everywhere, unless
no one has tried to build gold?

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13 02:17:42 +00:00
Bryan Hundven
1a25115a18 gcc: Support only the latest branch releases of gcc
This change, as per #222, reduces the number of supported releases of
gcc to the latest branch releases.

I noticed while doing this work that gcc-4.5.4 was never added, so I
moved patches for gcc-4.5.3 to 4.5.4 and updated the
bfin-unknown-linux-uclibc example. Also, 120-siginfo.patch was fixed
upstream in the 4.5.4 release, so this patch is omitted.

I also bumped the avr sample to 4.9.3 from 4.9.2.

With the addition of gcc-5.x, the gcc release team now releases the
major.minor.0 versions, while updates to the branch are available in
svn/git. We'll address that when we get to issue #219. This change just
removes CC_GCC_5_1 and moves CC_GCC_5_2 to CC_GCC_5, and removes
CC_GCC_5_1_or_later and moves CC_GCC_5_2_or_later to CC_GCC_5_or_later.

This is the first of two part changes, as mentioned in #222.
This change is slated for release in 1.22.0. The next change will be
slated for 1.23.0, and will limit gcc versions to what is on
https://gcc.gnu.org under "Release Series and Status", which is
currently 4.9.3 and 5.2.0, although I will also support the previous
supported version. In this example that would be 4.8.5.

Last, but not least, this change also retires AVR32 support.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-10-31 12:17:35 -07:00
Jasmin Jessich
ba4cef6651 Adding patches for binutils version 2.25.1 as copy of 2.25.
Support binutils 2.25.1 in configuration.
Note: The patches do apply, but I didn't check the resulting tools.

Signed-off-by: Jasmin Jessich <jasmin@anw.at>
2015-09-01 21:11:34 +02:00
Erico Nunes
11646447fa binutils: patch to support -C for AVR memory usage
Distribution avr toolchains commonly add a patch to binutils' size to
enable a custom "-C" option that shows AVR memory usage.
This patch is specific to the AVR architecture.
In order to make the crosstool-ng AVR toolchain compatible with existing
distribution toolchains, this patch is necessary.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
2015-06-21 20:54:00 -03:00
Romain
c1c1189367 Do not use strlen to check that a string is empty
Here, the exact size of a not empty string is useless.
2015-03-15 15:00:22 +01:00
Bryan Hundven
b49e233167 binutils: Add binutils-2.25
This also updates the patches from 2.24.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-01-01 16:19:11 -08:00
Bryan Hundven
9aa3e8163d patches/binutils: Update patches from 2.22 to 2.24
This updates the patches in 2.22 to 2.24.
Some removed as they were applied upstream.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Message-Id: <9fb77800ae1d5f14cbf5.1393055637@Bryans-MacBook-Pro.local>
Patchwork-Id: 323130
2014-02-21 23:53:40 -08:00
Titus von Boxberg
062547b04d binutils/binutils: do not fwd declare struct stat (2.22).
For canadian cross to host i686-mingw32 fwd declaring
struct stat is not possible.
Instead #include <sys/stat.h>

Signed-off-by: Titus von Boxberg <titus@v9g.de>
Message-Id: <417a15d4277913841ddd.1353100974@tschetwerikow.boxberg.lan>
Patchwork-Id: 199733
2012-11-06 17:42:39 +01:00
Florian Fainelli
e395366aea binutils/binutils: backport upstream fix for binutils 2.22 ld bug 14189
See http://sourceware.org/bugzilla/show_bug.cgi?id=14189 for more information.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2012-09-19 10:40:50 +02:00
Benoît Thébaudeau"
25447b10c4 binutils/binutils: add the patches used by BuildRoot for 2.22
Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
2011-12-14 19:57:47 +01:00
Yann E. MORIN"
706d02f52d binutils/binutils: add latest version
Add patches used by buildroot.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-09-11 19:54:57 +02:00
Yann E. MORIN"
dc00d94ba3 binutils/binutils: fixup version strings
Recently, all binutils versions have been renamed after a GPL compliance
issue was found and fixed in binutils;
  http://sourceware.org/ml/binutils/2011-08/msg00198.html

Although legacy symlinks have been put in place, we should now use
the new, real version strings.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-09-11 18:18:53 +02:00
Yann E. MORIN"
01d16b6f26 binutils/binutils: fixup version strings
Recently, all binutils versions have been renamed after a GPL compliance
issue was found and fixed in binutils;
  http://sourceware.org/ml/binutils/2011-08/msg00198.html

Old versions are no-longer available since the rename (eg. 2.19 has been
superseeded by 2.19.1, and only 2.19.1a was regenerated).

Remove now-missing versions.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-09-11 18:26:12 +02:00
Yann E. MORIN"
3478b5a0e8 binutils/binutils: remove faulty patch
The added code should be conditinal to the target system
being !MIPS, but is based on the host system being !MIPS.

This is plain wrong, and had not been noticed until now
as I never used those binutils versions on MIPS.

See:
  http://sourceware.org/ml/crossgcc/2010-08/msg00192.html

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-08-31 23:24:40 +02:00
Yann E. MORIN"
3e2f9f3f86 binutils/binutils: forward-port the patchset from 2.20 to 2.20.1
Among other things, this should fix the issue reported by Thomas at:
  http://sourceware.org/ml/crossgcc/2010-08/msg00115.html

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-08-17 19:48:49 +02:00
Zhuang Yuyao
ebc5dc5b03 binutils/binutils: add patch to default emulation for mips64 2010-02-21 15:53:39 +01:00
Joachim Nilsson
cfbcdd3786 binutils/binultils: import binutils-2.20 patches from OE
This is a set of patches for binutils-2.20 that have been "ported", or rather
shamelessly stolen, from the OpenEmbedded project:

http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/binutils/binutils-2.20

Tried and tested on Arm (big-endian Xscale, and little-endian i.MX27) with GCC 4.4.2

Signed-off-by: Joachim Nilsson <jocke@vmlinux.org>
2010-01-07 01:08:08 +01:00
Frederic Roussel
6c88248647 patches/binutils/2.20: make patches appliable
Fix filenames in patch files for binutils-2.20.
Some patch files were only usable with patch argument '-p0'.
Fix the diff context to match 2.20 release.

Signed-off-by: Frederic Roussel <fr.frasc@gmail.com>
2009-11-11 14:44:53 -08:00
Yann E. MORIN"
ac17b542fe config/binutils: add latest version 2.20
Also add patchset vampirised from Gentoo.
2009-10-27 20:06:46 +01:00
Yann E. MORIN"
6d9e9b45f8 config/binutils: remove obsolete experimental versions 2009-10-27 20:06:07 +01:00
Yann E. MORIN"
4fb0c302e0 config: rip-out versions marked as OBSOLETE 2009-10-28 18:55:40 +01:00
Martin Lund"
a94b870756 Added initial AVR32 support (bare-metal,newlib) 2009-05-22 14:46:18 +00:00
Yann E. MORIN"
5e2f711dbf Add binutils-2.19.1 patchset, propagated from the 2.19 patchset.
/trunk/patches/binutils/2.19.1/120-sh-targets.patch             |   57    57     0     0 +++
 /trunk/patches/binutils/2.19.1/170-use-relro.patch              |   19    19     0     0 +
 /trunk/patches/binutils/2.19.1/160-use-new-ld-dtags.patch       |   19    19     0     0 +
 /trunk/patches/binutils/2.19.1/180-libiberty-pic.patch          |   19    19     0     0 +
 /trunk/patches/binutils/2.19.1/100-ppc64-pie.patch              |   25    25     0     0 +
 /trunk/patches/binutils/2.19.1/110-RPATH_ENVVAR-smack.patch     |   22    22     0     0 +
 /trunk/patches/binutils/2.19.1/140-pt-pax-flags-20081101.patch  |  254   254     0     0 +++++++++++++++
 /trunk/patches/binutils/2.19.1/150-warn-textrel.patch           |   53    53     0     0 +++
 /trunk/patches/binutils/2.19.1/130-check_ldrunpath_length.patch |   36    36     0     0 ++
 9 files changed, 504 insertions(+)
2009-03-08 11:14:03 +00:00
Yann E. MORIN"
eba28c52f0 Re-diff the binutils-2.18.50.0.4 patches.
Breakage spotted by "Sander Visser" <Sander.Visser@evidente.se>

 /trunk/patches/binutils/2.18.50.0.4/110-ld-makefile-path.patch       |   19    12     7     0 ++++++---
 /trunk/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch |    7     6     1     0 +++
 /trunk/patches/binutils/2.18.50.0.4/100-arm-uclibcgnueabi.patch      |   21    13     8     0 ++++++----
 /trunk/patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch |   15    10     5     0 +++++--
 4 files changed, 41 insertions(+), 21 deletions(-)
2009-03-07 11:20:27 +00:00
Yann E. MORIN"
44a2186e47 Remove a patch for binutils-2.19 that makes the cross MIPS case fail.
- it is not necessary to use the gnu_hash section by default.
- renumber following patches

 /trunk/patches/binutils/2.19/170-use-relro.patch     |   14    14     0     0 ++++++++++++++
 /trunk/patches/binutils/2.19/180-libiberty-pic.patch |   14    14     0     0 ++++++++++++++
 2 files changed, 28 insertions(+)
2008-11-24 10:17:05 +00:00
Yann E. MORIN"
161a19e423 Add binutils-2.19 and associated patchset (vampirised from Gentoo).
/trunk/patches/binutils/2.19/120-sh-targets.patch             |   52    52     0     0 ++++
 /trunk/patches/binutils/2.19/180-use-relro.patch              |   14    14     0     0 +
 /trunk/patches/binutils/2.19/160-use-new-ld-dtags.patch       |   14    14     0     0 +
 /trunk/patches/binutils/2.19/100-ppc64-pie.patch              |   20    20     0     0 +
 /trunk/patches/binutils/2.19/190-libiberty-pic.patch          |   14    14     0     0 +
 /trunk/patches/binutils/2.19/170-generate-gnu-hash.patch      |   16    16     0     0 +
 /trunk/patches/binutils/2.19/110-RPATH_ENVVAR-smack.patch     |   17    17     0     0 +
 /trunk/patches/binutils/2.19/140-pt-pax-flags-20081101.patch  |  249   249     0     0 +++++++++++++++++
 /trunk/patches/binutils/2.19/150-warn-textrel.patch           |   48    48     0     0 +++
 /trunk/patches/binutils/2.19/130-check_ldrunpath_length.patch |   31    31     0     0 ++
 /trunk/config/binutils.in                                     |    5     5     0     0 +
 11 files changed, 480 insertions(+)
2008-11-23 16:34:49 +00:00
Yann E. MORIN"
2d87a35831 Add binutils-2.18.50.0.9.
Add a patch to binutils to not use '/' as a comment separator on i386 assembly when targeting bare metal (breaks linux kernel build).

 /trunk/patches/binutils/2.18.50.0.8/130-i386-no-divide-comment.patch |   64    64     0     0 ++++++++++
 /trunk/patches/binutils/2.18.50.0.9/130-i386-no-divide-comment.patch |   64    64     0     0 ++++++++++
 /trunk/patches/binutils/2.14/110-i386-no-divide-comment.patch        |   38    38     0     0 ++++++
 /trunk/patches/binutils/2.14/270-i386-no-divide-comment.patch        |   38    38     0     0 ++++++
 /trunk/patches/binutils/2.16.1/160-i386-no-divide-comment.patch      |   40    40     0     0 ++++++
 /trunk/patches/binutils/2.17/210-i386-no-divide-comment.patch        |   64    64     0     0 ++++++++++
 /trunk/patches/binutils/2.18/120-i386-no-divide-comment.patch        |   64    64     0     0 ++++++++++
 /trunk/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch |   64    64     0     0 ++++++++++
 /trunk/patches/binutils/2.18.50.0.6/130-i386-no-divide-comment.patch |   64    64     0     0 ++++++++++
 /trunk/patches/binutils/2.18.50.0.7/130-i386-no-divide-comment.patch |   64    64     0     0 ++++++++++
 /trunk/config/binutils.in                                            |    6     6     0     0 +
 11 files changed, 570 insertions(+)
2008-09-22 12:09:19 +00:00
Yann E. MORIN"
c2426e53f1 Allow binutils-2.18 to use a shell other than bash when building. 2008-08-25 17:33:13 +00:00
Yann E. MORIN"
6317df4779 Fourth step at renaming patches: renumber all patches with a 10-step. 2008-07-28 21:32:33 +00:00
Yann E. MORIN"
661dd3046d REname binutils patches to not include 'binutils' nor the version in the patch names. 2008-07-28 20:17:48 +00:00
Yann E. MORIN"
ca83126a57 Add binutils-2.18.50.0.8 pathset, copied and rebased from 2.18.50.0.7.
/trunk/patches/binutils/2.18.50.0.8/200-ld-makefile-path.patch       |   24    24     0     0 ++++++++++
 /trunk/patches/binutils/2.18.50.0.8/100-arm-uclibcgnueabi.patch      |   24    24     0     0 ++++++++++
 /trunk/patches/binutils/2.18.50.0.8/300-check-ldrunpath-length.patch |   21    21     0     0 +++++++++
 3 files changed, 69 insertions(+)
2008-07-14 08:41:50 +00:00
Yann E. MORIN"
183ab5339e Make binutils 2.17 recognise makeinfo 2.11 as being more recent than the required 2.4.
/trunk/patches/binutils/2.17/120-makeinfo-version.patch |   16     0    16     0 ----------------
 1 file changed, 16 deletions(-)
2008-06-15 16:44:33 +00:00
Yann E. MORIN"
77bf4f327a Add latest binutils snapshot, and propagate patches from previous snapshot.
/trunk/config/binutils.in |    6     6     0     0 ++++++
 1 file changed, 6 insertions(+)
2008-05-15 16:47:50 +00:00
Yann E. MORIN"
5b3e2c8fd8 Remove some EXPERIMENTAL binutils versions, I do not have time to create associated patches.
/trunk/patches/binutils/2.18.50.0.4/200-ld-makefile-path.patch       |   30    30     0     0 ++++++++++
 /trunk/patches/binutils/2.18.50.0.4/100-arm-uclibcgnueabi.patch      |   30    30     0     0 ++++++++++
 /trunk/patches/binutils/2.18.50.0.4/300-check-ldrunpath-length.patch |   26    26     0     0 +++++++++
 /trunk/patches/binutils/2.18.50.0.6/200-ld-makefile-path.patch       |   30    30     0     0 ++++++++++
 /trunk/patches/binutils/2.18.50.0.6/100-arm-uclibcgnueabi.patch      |   30    30     0     0 ++++++++++
 /trunk/patches/binutils/2.18.50.0.6/300-check-ldrunpath-length.patch |   26    26     0     0 +++++++++
 /trunk/config/binutils.in                                            |   24     0    24     0 --------
 7 files changed, 172 insertions(+), 24 deletions(-)
2008-05-02 21:51:14 +00:00
Yann E. MORIN"
ad000c98d8 New patch to binutils 2.18, from "Matvejchikov Ilya" <matvejchikov@gmail.com> (coming from buildroot).
Fixes building with /old/ version of texinfo. Thanks!
2007-10-30 19:15:45 +00:00
Yann E. MORIN"
b1e693e402 Renamed all patches file names so that locales are now irrelevant to sort the files.
Removed the locale check as it is now irrelevant.
Removed the experimental binutils 2.17.50.0.xx: 2.18 is here now.
2007-09-23 17:08:09 +00:00
Yann E. MORIN"
6c368af5b4 Do a clean-up pass on the OBSOLETE features (versions):
- remove legions of those,
 - remove associated patches no longer needed,
 - mark then as (OBSOLETE) in the prompt;
2007-08-14 20:11:44 +00:00