Bail out of debuginfo if stabs format encountered (RhBug:453506)

- The previous "silently ignore" policy produces bogus debuginfo
  packages on some architectures and fails with other mysterious
  errors on others, better just fail hard until (if ever) somebody adds
  stabs support.
This commit is contained in:
Panu Matilainen 2011-05-24 17:23:37 +03:00
parent a4a186ba20
commit ba3a76f737

View File

@ -1570,10 +1570,11 @@ main (int argc, char *argv[])
case SHT_PROGBITS:
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);