blob: d5195308468d1b1f8ef20a7db088600282deb585 [file] [log] [blame]
From c78337f4e6459e18e1d2af95d8e313b9dcb3f097 Mon Sep 17 00:00:00 2001
From: David Holsgrove <david.holsgrove@xilinx.com>
Date: Wed, 27 Feb 2013 13:56:11 +1000
Subject: [PATCH 05/52] upstream change to garbage collection sweep causes mb
regression
Upstream change for PR13177 now clears the def_regular during gc_sweep of a
section. (All other archs in binutils/bfd/elf32-*.c received an update
to a warning about unresolvable relocations - this warning is not present
in binutils/bfd/elf32-microblaze.c, but this warning check would not
prevent the error being seen)
The visible issue with this change is when running a c++ application
in Petalinux which links libstdc++.so for exception handling it segfaults
on execution.
This does not occur if static linking libstdc++.a, so its during the
relocations for a shared lib with garbage collection this occurs
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
---
bfd/elflink.c | 1 -
1 file changed, 1 deletion(-)
Index: gdb-9.2/bfd/elflink.c
===================================================================
--- gdb-9.2.orig/bfd/elflink.c
+++ gdb-9.2/bfd/elflink.c
@@ -6274,7 +6274,6 @@ elf_gc_sweep_symbol (struct elf_link_has
inf = (struct elf_gc_sweep_symbol_info *) data;
(*inf->hide_symbol) (inf->info, h, TRUE);
- h->def_regular = 0;
h->ref_regular = 0;
h->ref_regular_nonweak = 0;
}