1 #-------------------------------------------------------------------------------
2 # elftools: elf/constants.py
4 # Constants and flags, placed into classes for namespacing
6 # Eli Bendersky (eliben@gmail.com)
7 # This code is in the public domain
8 #-------------------------------------------------------------------------------
9 class SHN_INDICES(object):
10 """ Special section indices
21 class SH_FLAGS(object):
22 """ Flag values for the sh_flags field of section headers
31 SHF_OS_NONCONFORMING
=0x100
35 SHF_EXCLUDE
=0x80000000
36 SHF_MASKPROC
=0xf0000000
39 class P_FLAGS(object):
40 """ Flag values for the p_flags field of program headers
46 PF_MASKPROC
=0xFF000000
49 # symbol info flags for entries
50 # in the .SUNW_syminfo section
51 class SYMINFO_FLAGS(object):
52 """ Flags for the si_flags field of entries
53 in the .SUNW_syminfo section
55 SYMINFO_FLG_DIRECT
=0x1
56 SYMINFO_FLG_FILTER
=0x2
58 SYMINFO_FLG_LAZYLOAD
=0x8
59 SYMINFO_FLG_DIRECTBIND
=0x10
60 SYMINFO_FLG_NOEXTDIRECT
=0x20
61 SYMINFO_FLG_AUXILIARY
=0x40
62 SYMINFO_FLG_INTERPOSE
=0x80
64 SYMINFO_FLG_DEFERRED
=0x200