summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils-2.23.2/backport/0002-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.23.2/backport/0002-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.23.2/backport/0002-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.23.2/backport/0002-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch b/meta/recipes-devtools/binutils/binutils-2.23.2/backport/0002-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch
new file mode 100644
index 0000000000..36e5924d48
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils-2.23.2/backport/0002-emultempl-elf32.em-gld-EMULATION_NAME-_before_alloca.patch
@@ -0,0 +1,43 @@
1From b0d2b7b6eae7b7f4fbfd1695d4d2f1b45198d597 Mon Sep 17 00:00:00 2001
2From: "Maciej W. Rozycki" <macro@linux-mips.org>
3Date: Fri, 3 May 2013 15:01:19 +0000
4Subject: [PATCH] * emultempl/elf32.em
5 (gld${EMULATION_NAME}_before_allocation): Only call
6 lang_for_each_statement if an ELF hash table is used.
7
8---
9 ld/ChangeLog | 5 +++++
10 ld/emultempl/elf32.em | 12 +++++++-----
11 2 files changed, 12 insertions(+), 5 deletions(-)
12
132013-05-03 Alan Modra <amodra@gmail.com>
14
15 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
16 Only call lang_for_each_statement if an ELF hash table is used.
17
18Upstream-Status: Backport
19
20Index: binutils-2.23.2/ld/emultempl/elf32.em
21===================================================================
22--- binutils-2.23.2.orig/ld/emultempl/elf32.em 2013-06-26 23:35:45.000000000 -0700
23+++ binutils-2.23.2/ld/emultempl/elf32.em 2013-06-26 23:37:04.530429733 -0700
24@@ -1495,12 +1495,14 @@
25 bfd *abfd;
26
27 if (is_elf_hash_table (link_info.hash))
28- _bfd_elf_tls_setup (link_info.output_bfd, &link_info);
29+ {
30+ _bfd_elf_tls_setup (link_info.output_bfd, &link_info);
31
32- /* If we are going to make any variable assignments, we need to let
33- the ELF backend know about them in case the variables are
34- referred to by dynamic objects. */
35- lang_for_each_statement (gld${EMULATION_NAME}_find_statement_assignment);
36+ /* If we are going to make any variable assignments, we need to
37+ let the ELF backend know about them in case the variables are
38+ referred to by dynamic objects. */
39+ lang_for_each_statement (gld${EMULATION_NAME}_find_statement_assignment);
40+ }
41
42 /* Let the ELF backend work out the sizes of any sections required
43 by dynamic linking. */