(self, rva, size)
| 3817 | return bound_imports |
| 3818 | |
| 3819 | def parse_directory_tls(self, rva, size): |
| 3820 | """""" |
| 3821 | |
| 3822 | # By default let's pretend the format is a 32-bit PE. It may help |
| 3823 | # produce some output for files where the Magic in the Optional Header |
| 3824 | # is incorrect. |
| 3825 | format = self.__IMAGE_TLS_DIRECTORY_format__ |
| 3826 | |
| 3827 | if self.PE_TYPE == OPTIONAL_HEADER_MAGIC_PE_PLUS: |
| 3828 | format = self.__IMAGE_TLS_DIRECTORY64_format__ |
| 3829 | |
| 3830 | try: |
| 3831 | tls_struct = self.__unpack_data__( |
| 3832 | format, |
| 3833 | self.get_data(rva, Structure(format).sizeof()), |
| 3834 | file_offset=self.get_offset_from_rva(rva), |
| 3835 | ) |
| 3836 | except PEFormatError: |
| 3837 | self.__warnings.append( |
| 3838 | "Invalid TLS information. Can't read " "data at RVA: 0x%x" % rva |
| 3839 | ) |
| 3840 | tls_struct = None |
| 3841 | |
| 3842 | if not tls_struct: |
| 3843 | return None |
| 3844 | |
| 3845 | return TlsData(struct=tls_struct) |
| 3846 | |
| 3847 | def parse_directory_load_config(self, rva, size): |
| 3848 | """""" |
nothing calls this directly
no test coverage detected