Пример #1
0
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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)