From eb447054177affcbf62b31390a08275caa107f08 Mon Sep 17 00:00:00 2001 From: Yann Rouillard Date: Sun, 16 Jun 2013 21:05:50 +0200 Subject: [PATCH] add support for solaris additional visibility specifications (see http://docs.oracle.com/cd/E19963-01/html/819-0690/chapter6-93046.html#chapter7-27) --- elftools/elf/descriptions.py | 3 +++ elftools/elf/enums.py | 3 +++ 2 files changed, 6 insertions(+) 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, ) -- 2.30.2