summaryrefslogtreecommitdiffstats
path: root/src/readelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/readelf.c')
-rw-r--r--src/readelf.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/readelf.c b/src/readelf.c
index b990bfe1..c8bb2f08 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -4332,7 +4332,15 @@ register_info (Ebl *ebl, unsigned int regno, const Ebl_Register_Location *loc,
*bits = loc->bits;
if (type != NULL)
*type = DW_ATE_unsigned;
- set = "??? unrecognized registers";
+ set = "??? unrecognized";
+ }
+ else
+ {
+ if (bits != NULL && *bits <= 0)
+ *bits = loc->bits;
+ if (type != NULL && *type == DW_ATE_void)
+ *type = DW_ATE_unsigned;
+
}
return set;
}