summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils-2.23.2/backport/0001-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2013-06-26 23:52:59 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-05 15:34:26 +0100
commit7450ff24160864bf93804eac6985782a4784e565 (patch)
treed943500125e8f803ea5a7c28162b6f4923570147 /meta/recipes-devtools/binutils/binutils-2.23.2/backport/0001-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch
parent470fe276799732633b56c1cf88b7d1a157686e90 (diff)
downloadpoky-7450ff24160864bf93804eac6985782a4784e565.tar.gz
binutils: Backport emulation template fixes
This fixes the linking errors seen on mips64 when linking sln/ from eglibc 2.18 /builds1/angstrom/build/tmp-angstrom_next-eglibc/sysroots/x86_64-linux/usr/libexec/mips64-angstrom-linux.gcc-cross-initial/gcc/mips64-angstrom-linux/4.8.1/ld: BFD (GNU Binutils) 2.23.2 assertion fail /builds1/angstrom/build/tmp-angstrom_next-eglibc/work/mips64-angstrom-linux/binutils-cross/2.23.2-r4/binutils-2.23.2/bfd/elfxx-mips.c:3453 | collect2: error: ld returned 1 exit status (From OE-Core rev: eda721f0c85afa30c2b3030ef76522cc3451af21) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.23.2/backport/0001-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.23.2/backport/0001-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.23.2/backport/0001-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch b/meta/recipes-devtools/binutils/binutils-2.23.2/backport/0001-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch
new file mode 100644
index 0000000000..050450fae2
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils-2.23.2/backport/0001-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch
@@ -0,0 +1,31 @@
1From 4c147afe1796611c431aa86ea12342c1d80c2c4b Mon Sep 17 00:00:00 2001
2From: "Maciej W. Rozycki" <macro@linux-mips.org>
3Date: Wed, 1 May 2013 17:18:43 +0000
4Subject: [PATCH] * emultempl/elf32.em
5 (gld${EMULATION_NAME}_before_allocation): Use
6 is_elf_hash_table rather than a handcoded condition.
7
8---
9 ld/ChangeLog | 5 +++++
10 ld/emultempl/elf32.em | 2 +-
11 2 files changed, 6 insertions(+), 1 deletion(-)
12
132013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
14
15 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
16 Use is_elf_hash_table rather than a handcoded condition.
17
18Upstream-Status: Backport
19Index: binutils-2.23.2/ld/emultempl/elf32.em
20===================================================================
21--- binutils-2.23.2.orig/ld/emultempl/elf32.em 2013-06-26 23:29:32.000000000 -0700
22+++ binutils-2.23.2/ld/emultempl/elf32.em 2013-06-26 23:35:45.798428256 -0700
23@@ -1494,7 +1494,7 @@
24 asection *sinterp;
25 bfd *abfd;
26
27- if (link_info.hash->type == bfd_link_elf_hash_table)
28+ if (is_elf_hash_table (link_info.hash))
29 _bfd_elf_tls_setup (link_info.output_bfd, &link_info);
30
31 /* If we are going to make any variable assignments, we need to let