summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx
index 03ac0941..fc8a578e 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -4429,7 +4429,13 @@ dump_unwindsyms (Dwfl_Module *m,
else if (n > 0)
{
assert (secname != NULL);
- // secname adequately set
+ // secname adequately set
+
+ // NB: it may be an empty string for ET_DYN objects
+ // like shared libraries, as their relocation base
+ // is implicit.
+ if (secname[0] == '\0')
+ secname = ".dynamic";
}
else
{