예제 #1
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def valid_reloction_types(self):
        """Return the valid_reloc_types attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(
            self._ptr, BfdAttributes.VALID_RELOC_TYPES)
예제 #2
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def little_endian(self):
        """
        Return the little_endian attribute of the BFD file being processed.
        """
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.IS_LITTLE_ENDIAN)
예제 #3
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def has_gap_in_elf_shndx(self):
        """Return the has gap in elf shndx attribute of the BFD file being
        processed.
        """
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(
            self._ptr, BfdAttributes.HAS_GAP_IN_ELF_SHNDX)
예제 #4
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def is_thin_archieve(self):
        """
        Return the is thin archieve attribute of the BFD file being processed.
        """
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(
            self._ptr, BfdAttributes.IS_THIN_ARCHIEVE)
예제 #5
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def symbol_leading_char(self):
        """Return the symbol leading char attribute of the BFD file being
        processed.
        
        """
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(
            self._ptr, BfdAttributes.SYMBOL_LEADING_CHAR)
예제 #6
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def dynamic_symbols_count(self):
        """Return the dynamic symbols count attribute of the BFD file being
        processed.
        
        """
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(
            self._ptr, BfdAttributes.DYNAMIC_SYMCOUNT)
예제 #7
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def header_big_endian(self):
        """
        Return the header_big_endian attribute of the BFD file being processed.

        """
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(
            self._ptr, BfdAttributes.HEADER_BIG_ENDIAN)
예제 #8
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def sections_count(self):
        """Return the sections_count attribute of the BFD file being processed."""
        # This should match the 'sections' attribute length so instead should
        # use :
        #
        #   len(bfd.sections)
        #
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.COUNT_SECTIONS)
예제 #9
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def applicable_file_flags(self):
        """
        Return the applicable file flags attribute of the BFD file being
        processed.

        """
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(
            self._ptr, BfdAttributes.APPLICABLE_FILE_FLAGS)
예제 #10
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def filename(self):
        """Return the filename of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.FILENAME)
예제 #11
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def out_symbols(self):
        """Return the out symbols attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.OUTSYMBOLS)
예제 #12
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def gp_size(self):
        """Return the start address attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr)
예제 #13
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def start_address(self):
        """Return the start address attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.START_ADDRESS)
예제 #14
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def user_data(self):
        """Return the usrdata attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.USRDATA)
예제 #15
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def format(self):
        """Return the format attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.FORMAT)
예제 #16
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def target(self):
        """Return the target of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.TARGET)
예제 #17
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def cacheable(self):
        """Return the cacheable attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.CACHEABLE)
예제 #18
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def has_map(self):
        """Return the has map attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.HAS_MAP)
예제 #19
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def machine(self):
        """Return the flavour attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.FLAVOUR)
예제 #20
0
파일: bfd.py 프로젝트: alfred-gw/pybfd
    def family_coff(self):
        """Return the family_coff attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.FAMILY_COFF)