rpm/rpm-5.4.4-debugedit-bail-out-of-debuginfo-if-stabs-format-encountered.patch
2012-08-01 14:59:23 +04:00

17 lines
577 B
Diff

--- rpm-5.4.4/tools/debugedit.c.stabs_fail~ 2011-11-28 16:26:30.102211728 +0100
+++ rpm-5.4.4/tools/debugedit.c 2011-11-28 16:29:10.859401835 +0100
@@ -1604,10 +1604,11 @@ main (int argc, char *argv[])
case SHT_MIPS_DWARF:
name = strptr (dso, dso->ehdr.e_shstrndx, dso->shdr[i].sh_name);
/* TODO: Handle stabs */
-#if 0
if (strcmp (name, ".stab") == 0)
- edit_stabs (dso, i);
-#endif
+ {
+ fprintf (stderr, "Stabs debuginfo not supported: %s\n", file);
+ exit (1);
+ }
if (strcmp (name, ".debug_info") == 0)
edit_dwarf2 (dso);