self._emitline(' Num: Value Size Type Bind Vis Ndx Name')
for nsym, symbol in enumerate(section.iter_symbols()):
-
version_info = ''
# readelf doesn't display version info for Solaris versioning
if (section['sh_type'] == 'SHT_DYNSYM' and
self._emitline("Section '%s' does not exist in the file!" % (
section_spec))
return
+ if section['sh_type'] == 'SHT_NOBITS':
+ self._emitline("\nSection '%s' has no data to dump." % (
+ section_spec))
+ return
self._emitline("\nHex dump of section '%s':" % section.name)
self._note_relocs_for_section(section)
self._emitline("Section '%s' does not exist in the file!" % (
section_spec))
return
+ if section['sh_type'] == 'SHT_NOBITS':
+ self._emitline("\nSection '%s' has no data to dump." % (
+ section_spec))
+ return
self._emitline("\nString dump of section '%s':" % section.name)