diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-17 15:38:04 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-17 15:38:04 +1000 |
commit | f80dac49ecbd4b3de0abc6e89bb1ed04d5c67b24 (patch) | |
tree | b97875886e89d162febb57d5a49453bdd7d1b9ba /recipes-microblaze/binutils/files/upstream-change-to-garbage-collection-s.patch | |
parent | 1207db6f96a0c1bd0fb95a176cc8d5627dd406ed (diff) | |
download | meta-xilinx-f80dac49ecbd4b3de0abc6e89bb1ed04d5c67b24.tar.gz |
recipes-microblaze: Move all MicroBlaze appends
* Move recipes that are specifically for MicroBlaze support into the
recipes-microblaze directory
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'recipes-microblaze/binutils/files/upstream-change-to-garbage-collection-s.patch')
-rw-r--r-- | recipes-microblaze/binutils/files/upstream-change-to-garbage-collection-s.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-microblaze/binutils/files/upstream-change-to-garbage-collection-s.patch b/recipes-microblaze/binutils/files/upstream-change-to-garbage-collection-s.patch new file mode 100644 index 00000000..aa571d45 --- /dev/null +++ b/recipes-microblaze/binutils/files/upstream-change-to-garbage-collection-s.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From: David Holsgrove <david.holsgrove@xilinx.com> | ||
2 | Date: Wed, 27 Feb 2013 13:56:11 +1000 | ||
3 | Subject: upstream change to garbage collection sweep causes mb regression | ||
4 | |||
5 | Upstream change for PR13177 now clears the def_regular during gc_sweep of a | ||
6 | section. (All other archs in binutils/bfd/elf32-*.c received an update | ||
7 | to a warning about unresolvable relocations - this warning is not present | ||
8 | in binutils/bfd/elf32-microblaze.c, but this warning check would not | ||
9 | prevent the error being seen) | ||
10 | |||
11 | The visible issue with this change is when running a c++ application | ||
12 | in Petalinux which links libstdc++.so for exception handling it segfaults | ||
13 | on execution. | ||
14 | |||
15 | This does not occur if static linking libstdc++.a, so its during the | ||
16 | relocations for a shared lib with garbage collection this occurs | ||
17 | |||
18 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> | ||
19 | Upstream-Status: Pending | ||
20 | --- | ||
21 | bfd/elflink.c | 1 - | ||
22 | 1 file changed, 1 deletion(-) | ||
23 | |||
24 | diff --git a/bfd/elflink.c b/bfd/elflink.c | ||
25 | index 99b7ca1..415d714 100644 | ||
26 | --- a/bfd/elflink.c | ||
27 | +++ b/bfd/elflink.c | ||
28 | @@ -11909,7 +11909,6 @@ elf_gc_sweep_symbol (struct elf_link_hash_entry *h, void *data) | ||
29 | |||
30 | inf = (struct elf_gc_sweep_symbol_info *) data; | ||
31 | (*inf->hide_symbol) (inf->info, h, TRUE); | ||
32 | - h->def_regular = 0; | ||
33 | h->ref_regular = 0; | ||
34 | h->ref_regular_nonweak = 0; | ||
35 | } | ||
36 | -- | ||
37 | 1.8.5.1 | ||
38 | |||