From: Yann Rouillard Date: Sun, 16 Jun 2013 19:05:50 +0000 (+0200) Subject: add support for solaris additional visibility specifications X-Git-Tag: v0.22~19^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb447054177affcbf62b31390a08275caa107f08;p=pyelftools.git add support for solaris additional visibility specifications (see http://docs.oracle.com/cd/E19963-01/html/819-0690/chapter6-93046.html#chapter7-27) --- diff --git a/elftools/elf/descriptions.py b/elftools/elf/descriptions.py index 279856a..3eb208c 100644 --- a/elftools/elf/descriptions.py +++ b/elftools/elf/descriptions.py @@ -265,6 +265,9 @@ _DESCR_ST_VISIBILITY = dict( STV_INTERNAL='INTERNAL', STV_HIDDEN='HIDDEN', STV_PROTECTED='PROTECTED', + STV_EXPORTED='EXPORTED', + STV_SINGLETON='SINGLETON', + STV_ELIMINATE='ELIMINATE', ) _DESCR_ST_SHNDX = dict( diff --git a/elftools/elf/enums.py b/elftools/elf/enums.py index deb9f35..7242524 100644 --- a/elftools/elf/enums.py +++ b/elftools/elf/enums.py @@ -264,6 +264,9 @@ ENUM_ST_VISIBILITY = dict( STV_INTERNAL=1, STV_HIDDEN=2, STV_PROTECTED=3, + STV_EXPORTED=4, + STV_SINGLETON=5, + STV_ELIMINATE=6, _default_=Pass, )