added test file (clang-compiled). fixed readelf handling of unknown attributes
diff --git a/scripts/readelf.py b/scripts/readelf.py
index a7296f5..051a21a 100755
--- a/scripts/readelf.py
+++ b/scripts/readelf.py
@@ -543,9 +543,13 @@
die.tag))
for attr in die.attributes.itervalues():
+ name = attr.name
+ # Unknown attribute values are passed-through as integers
+ if isinstance(name, int):
+ name = 'Unknown AT value: %x' % name
self._emitline(' <%2x> %-18s: %s' % (
attr.offset,
- attr.name,
+ name,
describe_attr_value(
attr, die, section_offset)))