rename Ver(def|need|sym)TableSection to GNUVer(Def|Need|Sym)TableSection
diff --git a/scripts/readelf.py b/scripts/readelf.py
index b437a5f..dc01566 100755
--- a/scripts/readelf.py
+++ b/scripts/readelf.py
@@ -25,8 +25,8 @@
from elftools.elf.enums import ENUM_D_TAG
from elftools.elf.segments import InterpSegment
from elftools.elf.sections import (
- SymbolTableSection, VersymTableSection,
- VerdefTableSection, VerneedTableSection,
+ SymbolTableSection, GNUVerSymTableSection,
+ GNUVerDefTableSection, GNUVerNeedTableSection,
)
from elftools.elf.relocation import RelocationSection
from elftools.elf.descriptions import (
@@ -424,7 +424,7 @@
return
for section in self.elffile.iter_sections():
- if isinstance(section, VersymTableSection):
+ if isinstance(section, GNUVerSymTableSection):
self._print_version_section_header(
section, 'Version symbols', lead0x=False)
@@ -456,7 +456,7 @@
self._emitline()
- elif isinstance(section, VerdefTableSection):
+ elif isinstance(section, GNUVerDefTableSection):
self._print_version_section_header(
section, 'Version definition', indent=2)
@@ -490,7 +490,7 @@
offset += verdef['vd_next']
- elif isinstance(section, VerneedTableSection):
+ elif isinstance(section, GNUVerNeedTableSection):
self._print_version_section_header(section, 'Version needs')
@@ -696,11 +696,11 @@
'verneed': None, 'type': None }
for section in self.elffile.iter_sections():
- if isinstance(section, VersymTableSection):
+ if isinstance(section, GNUVerSymTableSection):
self._versioninfo['versym'] = section
- elif isinstance(section, VerdefTableSection):
+ elif isinstance(section, GNUVerDefTableSection):
self._versioninfo['verdef'] = section
- elif isinstance(section, VerneedTableSection):
+ elif isinstance(section, GNUVerNeedTableSection):
self._versioninfo['verneed'] = section
elif isinstance(section, DynamicSection):
for tag in section.iter_tags():