diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
commit | 8d89651ef729e560ad96dcfc002fcde6ff7f923b (patch) | |
tree | eb5be01c25f735d12fe9881ee6327c9b7e8bbe39 /meta-linaro-toolchain/recipes-devtools/binutils/binutils-linaro-2.24/binutils-uninitialised-warning.patch | |
download | meta-linaro-dizzy-enea.tar.gz |
initial commit for Enea Linux 5.0 armdizzy-enea
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-linaro-toolchain/recipes-devtools/binutils/binutils-linaro-2.24/binutils-uninitialised-warning.patch')
-rw-r--r-- | meta-linaro-toolchain/recipes-devtools/binutils/binutils-linaro-2.24/binutils-uninitialised-warning.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-linaro-toolchain/recipes-devtools/binutils/binutils-linaro-2.24/binutils-uninitialised-warning.patch b/meta-linaro-toolchain/recipes-devtools/binutils/binutils-linaro-2.24/binutils-uninitialised-warning.patch new file mode 100644 index 0000000..2feb80c --- /dev/null +++ b/meta-linaro-toolchain/recipes-devtools/binutils/binutils-linaro-2.24/binutils-uninitialised-warning.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From f9c316c4d75be236bbaa8464ef803ed2d3859d6d Mon Sep 17 00:00:00 2001 | ||
2 | From: H.J. Lu <hjl.tools@gmail.com> | ||
3 | Date: Wed, 15 Jan 2014 07:43:19 -0800 | ||
4 | Subject: [PATCH 1/1] Silence uninitialized warning on ehdr_start_save | ||
5 | |||
6 | Older GCC, like 4.1/4.2, will issue an uninitialized warning on | ||
7 | ehdr_start_save. This patch silences by using | ||
8 | |||
9 | struct bfd_link_hash_entry ehdr_start_save = ehdr_start_save; | ||
10 | |||
11 | * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): | ||
12 | Silence uninitialized warning on ehdr_start_save with older | ||
13 | GCC. | ||
14 | |||
15 | Upstream-Status: Backport | ||
16 | --- | ||
17 | ld/ChangeLog | 6 ++++++ | ||
18 | ld/emultempl/elf32.em | 2 +- | ||
19 | 2 files changed, 7 insertions(+), 1 deletions(-) | ||
20 | |||
21 | #diff --git a/ld/ChangeLog b/ld/ChangeLog | ||
22 | #index eaa6b93..91055de 100644 | ||
23 | #--- a/ld/ChangeLog | ||
24 | #+++ b/ld/ChangeLog | ||
25 | #@@ -1,3 +1,9 @@ | ||
26 | #+2014-01-15 H.J. Lu <hongjiu.lu@intel.com> | ||
27 | #+ | ||
28 | #+ * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): | ||
29 | #+ Silence uninitialized warning on ehdr_start_save with older | ||
30 | #+ GCC. | ||
31 | #+ | ||
32 | # 2014-01-15 Alan Modra <amodra@gmail.com> | ||
33 | # | ||
34 | # * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define | ||
35 | diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em | ||
36 | index 13f86f0..569c7f7 100644 | ||
37 | --- a/ld/emultempl/elf32.em | ||
38 | +++ b/ld/emultempl/elf32.em | ||
39 | @@ -1481,7 +1481,7 @@ gld${EMULATION_NAME}_before_allocation (void) | ||
40 | asection *sinterp; | ||
41 | bfd *abfd; | ||
42 | struct elf_link_hash_entry *ehdr_start = NULL; | ||
43 | - struct bfd_link_hash_entry ehdr_start_save; | ||
44 | + struct bfd_link_hash_entry ehdr_start_save = ehdr_start_save; | ||
45 | |||
46 | if (is_elf_hash_table (link_info.hash)) | ||
47 | { | ||
48 | -- | ||
49 | 1.7.1 | ||
50 | |||