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:
parent
a4a186ba20
commit
ba3a76f737
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user