diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-05-24 17:23:37 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-05-24 17:23:37 +0300 |
commit | fe2167ead95a394d97476baf1a35a4037d3ff202 (patch) | |
tree | e5b9fbb73c8648a339eb82744a75598789ae896c /tools | |
parent | fa053f4dd853a2f6e1451539c2d69e3e5c882553 (diff) | |
download | rpm-fe2167ead95a394d97476baf1a35a4037d3ff202.tar.gz rpm-fe2167ead95a394d97476baf1a35a4037d3ff202.tar.bz2 rpm-fe2167ead95a394d97476baf1a35a4037d3ff202.zip |
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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/debugedit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/debugedit.c b/tools/debugedit.c index 32976cb03..e8466d4bb 100644 --- a/tools/debugedit.c +++ b/tools/debugedit.c @@ -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); |