Thread: [Wisp-cvs] wisp/users/dig elf.py,1.3,1.4
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-02-06 21:40:47
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv12031 Modified Files: elf.py Log Message: trimmed elf.py Index: elf.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/elf.py,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- elf.py 6 Feb 2003 21:28:21 -0000 1.3 +++ elf.py 6 Feb 2003 21:40:39 -0000 1.4 @@ -139,24 +139,24 @@ PREINIT_ARRAY = 16 # Array of pre-constructors GROUP = 17 # Section group SYMTAB_SHNDX = 18 # Extended section indeces - NUM = 19 # Number of defined types. + NUM = 19 # Number of defined types LOOS = 0x60000000 # Start OS-specific GNU_LIBLIST = 0x6ffffff7 # Prelink library list - CHECKSUM = 0x6ffffff8 # Checksum for DSO content. - LOSUNW = 0x6ffffffa # Sun-specific low bound. + CHECKSUM = 0x6ffffff8 # Checksum for DSO content + LOSUNW = 0x6ffffffa # Sun-specific low bound SUNW_move = 0x6ffffffa SUNW_COMDAT = 0x6ffffffb SUNW_syminfo = 0x6ffffffc - GNU_verdef = 0x6ffffffd # Version definition section. - GNU_verneed = 0x6ffffffe # Version needs section. - GNU_versym = 0x6fffffff # Version symbol table. - HISUNW = 0x6fffffff # Sun-specific high bound. + GNU_verdef = 0x6ffffffd # Version definition section + GNU_verneed = 0x6ffffffe # Version needs section + GNU_versym = 0x6fffffff # Version symbol table + HISUNW = 0x6fffffff # Sun-specific high bound HIOS = 0x6fffffff # End OS-specific type LOPROC = 0x70000000 # Start of processor-specific HIPROC = 0x7fffffff # End of processor-specific LOUSER = 0x80000000 # Start of application-specific HIUSER = 0x8fffffff # End of application-specific -class SHF: # Legal values for sh_flags (section flags). +class SHF: # Legal values for sh_flags (section flags) WRITE = 1 << 0 # Writable ALLOC = 1 << 1 # Occupies memory during execution EXECINSTR = 1 << 2 # Executable @@ -166,43 +166,43 @@ LINK_ORDER = 1 << 7 # Preserve order after combining OS_NONCONFORMING = 1 << 8 # Non-standard OS specific handling # required - GROUP = 1 << 9 # Section is member of a group. - TLS = 1 << 10 # Section hold thread-local data. - MASKOS = 0x0ff00000 # OS-specific. + GROUP = 1 << 9 # Section is member of a group + TLS = 1 << 10 # Section hold thread-local data + MASKOS = 0x0ff00000 # OS-specific MASKPROC = 0xf0000000 # Processor-specific -class GRP: # Section group handling. - COMDAT = 0x1 # Mark group as COMDAT. +class GRP: # Section group handling + COMDAT = 0x1 # Mark group as COMDAT class SYMINFO: - class BT: # Possible values for si_boundto. + class BT: # Possible values for si_boundto SELF = 0xffff # Symbol bound to self PARENT = 0xfffe # Symbol bound to parent LOWRESERVE = 0xff00 # Beginning of reserved entries - class FLG: # Possible bitmasks for si_flags. + class FLG: # Possible bitmasks for si_flags DIRECT = 0x0001 # Direct bound symbol PASSTHRU = 0x0002 # Pass-thru symbol for translator COPY = 0x0004 # Symbol is a copy-reloc LAZYLOAD = 0x0008 # Symbol bound to object to be lazy loaded - # Syminfo version values. + # Syminfo version values NONE = 0 CURRENT = 1 NUM = 2 -class STB: # Legal values for ST_BIND subfield of st_info (symbol binding). +class STB: # Legal values for ST_BIND subfield of st_info (symbol binding) LOCAL = 0 # Local symbol GLOBAL = 1 # Global symbol WEAK = 2 # Weak symbol - NUM = 3 # Number of defined types. + NUM = 3 # Number of defined types LOOS = 10 # Start of OS-specific HIOS = 12 # End of OS-specific LOPROC = 13 # Start of processor-specific HIPROC = 15 # End of processor-specific -class STT: # Legal values for ST_TYPE subfield of st_info (symbol type). +class STT: # Legal values for ST_TYPE subfield of st_info (symbol type) NOTYPE = 0 # Symbol type is unspecified OBJECT = 1 # Symbol is a data object FUNC = 2 # Symbol is a code object SECTION = 3 # Symbol associated with a section FILE = 4 # Symbol's name is file name COMMON = 5 # Symbol is a common data object - NUM = 6 # Number of defined types. + NUM = 6 # Number of defined types LOOS = 10 # Start of OS-specific HIOS = 12 # End of OS-specific LOPROC = 13 # Start of processor-specific @@ -211,13 +211,13 @@ # Symbol table indices are found in the hash buckets and chain table # of a symbol hash table section. This special index value indicates # the end of a chain, meaning no further symbols are found in that bucket. - UNDEF = 0 # End of a chain. -class STV: # Symbol visibility specification encoded in the st_other field. + UNDEF = 0 # End of a chain +class STV: # Symbol visibility specification encoded in the st_other field DEFAULT = 0 # Default symbol visibility rules INTERNAL = 1 # Processor specific hidden class HIDDEN = 2 # Sym unavailable in other modules PROTECTED = 3 # Not preemptible, not exported -class PT: # Legal values for p_type (segment type). +class PT: # Legal values for p_type (segment type) NULL = 0 # Program header table entry unused LOAD = 1 # Loadable program segment DYNAMIC = 2 # Dynamic linking information @@ -232,7 +232,7 @@ HIOS = 0x6fffffff # End of OS-specific LOPROC = 0x70000000 # Start of processor-specific HIPROC = 0x7fffffff # End of processor-specific -class PF: # Legal values for p_flags (segment flags). +class PF: # Legal values for p_flags (segment flags) X = 1 << 0 # Segment is executable W = 1 << 1 # Segment is writable R = 1 << 2 # Segment is readable @@ -255,9 +255,9 @@ LWPSINFO = 17 # Contains copy of lwpinfo struct PRFPXREG = 20 # Contains copy of fprxregset struct - # Legal values for the note segment descriptor types for object files. - VERSION = 1 # Contains a version string. -class DT: # Legal values for d_tag (dynamic entry type). + # Legal values for the note segment descriptor types for object files + VERSION = 1 # Contains a version string +class DT: # Legal values for d_tag (dynamic entry type) NULL = 0 # Marks end of dynamic section NEEDED = 1 # Name of needed library PLTRELSZ = 2 # Size in bytes of PLT relocs @@ -298,12 +298,12 @@ LOPROC = 0x70000000 # Start of processor-specific HIPROC = 0x7fffffff # End of processor-specific -# Intel 80386 specific definitions. +# Intel 80386 specific definitions class RELOC: class I386: NONE = 0 # No reloc - D32 = 1 # Direct 32 bit + D32 = 1 # Direct 32 bit PC32 = 2 # PC relative 32 bit GOT32 = 3 # 32 bit GOT entry PLT32 = 4 # 32 bit PLT address @@ -313,7 +313,7 @@ RELATIVE = 8 # Adjust by program base GOTOFF = 9 # 32 bit offset to GOT GOTPC = 10 # 32 bit PC relative offset to GOT - # Keep this the last entry. + # Keep this the last entry NUM = 11 from linkie import Linkie |