diff options
author | Kumar Gala <kumar.gala@linaro.org> | 2020-11-06 08:21:41 -0600 |
---|---|---|
committer | Kumar Gala <kumar.gala@linaro.org> | 2020-11-06 08:51:19 -0600 |
commit | fe97d0794a4d3f03dc5352fb48ee28fb335cd25f (patch) | |
tree | 4d1c6b13b695eaa4539fc11fe5c7f548b4fe234e /packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch | |
parent | 0dd54d59ce638369b6e19738fa95d24f4dd90d80 (diff) | |
download | crosstool-ng-fe97d0794a4d3f03dc5352fb48ee28fb335cd25f.tar.gz crosstool-ng-fe97d0794a4d3f03dc5352fb48ee28fb335cd25f.tar.bz2 crosstool-ng-fe97d0794a4d3f03dc5352fb48ee28fb335cd25f.zip |
binutils: Pull in some bug fixes from binutils 2.35 branch
Expect that if there is a binutils 2.35.2 release these fixes will be
included in there, these are pulled out of the binutils-2_35-branch post
the 2.35.1 release.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Diffstat (limited to 'packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch')
-rw-r--r-- | packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch b/packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch new file mode 100644 index 00000000..b6b44965 --- /dev/null +++ b/packages/binutils/2.35.1/0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch @@ -0,0 +1,36 @@ +From 269d40a2ef3b020b5beb3f3de5b8e909c43ab53b Mon Sep 17 00:00:00 2001 +From: Nick Clifton <nickc@redhat.com> +Date: Thu, 24 Sep 2020 13:42:04 +0100 +Subject: [PATCH] Import patch from mainline to fix decoding DWARF information + in the BFD library. + + PR 26520 + * dwarf2.c (scan_unit_for_symbols): Add member entries to the + variable table. +--- +diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c +index b8f0008a10d..977bf43a6a1 100644 +--- a/bfd/dwarf2.c ++++ b/bfd/dwarf2.c +@@ -3404,7 +3404,8 @@ scan_unit_for_symbols (struct comp_unit *unit) + else + { + func = NULL; +- if (abbrev->tag == DW_TAG_variable) ++ if (abbrev->tag == DW_TAG_variable ++ || abbrev->tag == DW_TAG_member) + { + size_t amt = sizeof (struct varinfo); + var = (struct varinfo *) bfd_zalloc (abfd, amt); +@@ -3516,7 +3517,7 @@ scan_unit_for_symbols (struct comp_unit *unit) + spec_var = lookup_var_by_offset (attr.u.val, + unit->variable_table); + if (spec_var == NULL) +- { ++ { + _bfd_error_handler (_("DWARF error: could not find " + "variable specification " + "at offset %lx"), +-- +2.25.4 + |