forked from pool/elfutils
262266bac2
- Update to version 0.161 + libdw: New function dwarf_peel_type. dwarf_aggregate_size now uses dwarf_peel_type to also provide the sizes of qualified types. dwarf_getmacros will now serve either of .debug_macro and .debug_macinfo transparently. New interfaces dwarf_getmacros_off, dwarf_macro_getsrcfiles, dwarf_macro_getparamcnt, and dwarf_macro_param are available for more generalized inspection of macros and their parameters. dwarf.h: Add DW_AT_GNU_deleted, DW_AT_noreturn, DW_LANG_C11, DW_LANG_C_plus_plus_11 and DW_LANG_C_plus_plus_14. - Remove merged patches + elfutils-robustify.patch + elfutils-no-po-test-build.diff + elfutils-check-for-overflow-before-calling-malloc-to-uncompress-data.patch - Refreshed patch (from Fedora sources) + elfutils-portability.patch > elfutils-portability-0.161.patch - Add a lang subpackage OBS-URL: https://build.opensuse.org/request/show/280112 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=65
30 lines
834 B
Diff
30 lines
834 B
Diff
From: Takashi Iwai <tiwai@novell.com>
|
|
Subject: Fix for kernel debuginfo files
|
|
References: https://bugzilla.novell.com/show_bug.cgi?id=468247, comments 17-20
|
|
References: https://bugzilla.novell.com/show_bug.cgi?id=433182
|
|
|
|
Above BZ originally occured with Systemtap testsuite (stmt_rel.exp).
|
|
|
|
# stap -e 'probe kernel.statement("bio_put@fs/bio.c:*") {}'
|
|
semantic error: libdw failure (dwarf_getsrcfiles): invalid DWARF
|
|
...
|
|
---
|
|
|
|
|
|
libdw/dwarf_getsrclines.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/libdw/dwarf_getsrclines.c
|
|
+++ b/libdw/dwarf_getsrclines.c
|
|
@@ -293,8 +293,10 @@
|
|
/* Consistency check. */
|
|
if (unlikely (linep != header_start + header_length))
|
|
{
|
|
+#if 0
|
|
__libdw_seterrno (DWARF_E_INVALID_DWARF);
|
|
goto out;
|
|
+#endif
|
|
}
|
|
|
|
/* We are about to process the statement program. Initialize the
|