Lines Matching refs:COFF

148 static const EnumEntry<COFF::MachineTypes> ImageFileMachineType[] = {
149 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_UNKNOWN ),
150 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_AM33 ),
151 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_AMD64 ),
152 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_ARM ),
153 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_ARMNT ),
154 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_EBC ),
155 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_I386 ),
156 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_IA64 ),
157 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_M32R ),
158 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_MIPS16 ),
159 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_MIPSFPU ),
160 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_MIPSFPU16),
161 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_POWERPC ),
162 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_POWERPCFP),
163 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_R4000 ),
164 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_SH3 ),
165 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_SH3DSP ),
166 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_SH4 ),
167 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_SH5 ),
168 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_THUMB ),
169 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_MACHINE_WCEMIPSV2)
172 static const EnumEntry<COFF::Characteristics> ImageFileCharacteristics[] = {
173 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_RELOCS_STRIPPED ),
174 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_EXECUTABLE_IMAGE ),
175 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_LINE_NUMS_STRIPPED ),
176 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_LOCAL_SYMS_STRIPPED ),
177 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_AGGRESSIVE_WS_TRIM ),
178 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_LARGE_ADDRESS_AWARE ),
179 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_BYTES_REVERSED_LO ),
180 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_32BIT_MACHINE ),
181 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_DEBUG_STRIPPED ),
182 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP),
183 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_NET_RUN_FROM_SWAP ),
184 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_SYSTEM ),
185 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_DLL ),
186 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_UP_SYSTEM_ONLY ),
187 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_FILE_BYTES_REVERSED_HI )
190 static const EnumEntry<COFF::WindowsSubsystem> PEWindowsSubsystem[] = {
191 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_UNKNOWN ),
192 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_NATIVE ),
193 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_WINDOWS_GUI ),
194 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_WINDOWS_CUI ),
195 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_POSIX_CUI ),
196 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_WINDOWS_CE_GUI ),
197 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_EFI_APPLICATION ),
198 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER),
199 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER ),
200 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_EFI_ROM ),
201 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SUBSYSTEM_XBOX ),
204 static const EnumEntry<COFF::DLLCharacteristics> PEDLLCharacteristics[] = {
205 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA ),
206 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE ),
207 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY ),
208 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT ),
209 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_NO_ISOLATION ),
210 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_NO_SEH ),
211 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_NO_BIND ),
212 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_APPCONTAINER ),
213 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_WDM_DRIVER ),
214 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_GUARD_CF ),
215 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE),
218 static const EnumEntry<COFF::SectionCharacteristics>
220 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_TYPE_NO_PAD ),
221 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_CNT_CODE ),
222 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_CNT_INITIALIZED_DATA ),
223 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_CNT_UNINITIALIZED_DATA),
224 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_LNK_OTHER ),
225 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_LNK_INFO ),
226 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_LNK_REMOVE ),
227 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_LNK_COMDAT ),
228 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_GPREL ),
229 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_PURGEABLE ),
230 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_16BIT ),
231 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_LOCKED ),
232 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_PRELOAD ),
233 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_1BYTES ),
234 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_2BYTES ),
235 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_4BYTES ),
236 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_8BYTES ),
237 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_16BYTES ),
238 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_32BYTES ),
239 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_64BYTES ),
240 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_128BYTES ),
241 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_256BYTES ),
242 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_512BYTES ),
243 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_1024BYTES ),
244 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_2048BYTES ),
245 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_4096BYTES ),
246 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_ALIGN_8192BYTES ),
247 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_LNK_NRELOC_OVFL ),
248 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_DISCARDABLE ),
249 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_NOT_CACHED ),
250 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_NOT_PAGED ),
251 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_SHARED ),
252 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_EXECUTE ),
253 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_READ ),
254 LLVM_READOBJ_ENUM_ENT(COFF, IMAGE_SCN_MEM_WRITE )
257 static const EnumEntry<COFF::SymbolBaseType> ImageSymType[] = {
258 { "Null" , COFF::IMAGE_SYM_TYPE_NULL },
259 { "Void" , COFF::IMAGE_SYM_TYPE_VOID },
260 { "Char" , COFF::IMAGE_SYM_TYPE_CHAR },
261 { "Short" , COFF::IMAGE_SYM_TYPE_SHORT },
262 { "Int" , COFF::IMAGE_SYM_TYPE_INT },
263 { "Long" , COFF::IMAGE_SYM_TYPE_LONG },
264 { "Float" , COFF::IMAGE_SYM_TYPE_FLOAT },
265 { "Double", COFF::IMAGE_SYM_TYPE_DOUBLE },
266 { "Struct", COFF::IMAGE_SYM_TYPE_STRUCT },
267 { "Union" , COFF::IMAGE_SYM_TYPE_UNION },
268 { "Enum" , COFF::IMAGE_SYM_TYPE_ENUM },
269 { "MOE" , COFF::IMAGE_SYM_TYPE_MOE },
270 { "Byte" , COFF::IMAGE_SYM_TYPE_BYTE },
271 { "Word" , COFF::IMAGE_SYM_TYPE_WORD },
272 { "UInt" , COFF::IMAGE_SYM_TYPE_UINT },
273 { "DWord" , COFF::IMAGE_SYM_TYPE_DWORD }
276 static const EnumEntry<COFF::SymbolComplexType> ImageSymDType[] = {
277 { "Null" , COFF::IMAGE_SYM_DTYPE_NULL },
278 { "Pointer" , COFF::IMAGE_SYM_DTYPE_POINTER },
279 { "Function", COFF::IMAGE_SYM_DTYPE_FUNCTION },
280 { "Array" , COFF::IMAGE_SYM_DTYPE_ARRAY }
283 static const EnumEntry<COFF::SymbolStorageClass> ImageSymClass[] = {
284 { "EndOfFunction" , COFF::IMAGE_SYM_CLASS_END_OF_FUNCTION },
285 { "Null" , COFF::IMAGE_SYM_CLASS_NULL },
286 { "Automatic" , COFF::IMAGE_SYM_CLASS_AUTOMATIC },
287 { "External" , COFF::IMAGE_SYM_CLASS_EXTERNAL },
288 { "Static" , COFF::IMAGE_SYM_CLASS_STATIC },
289 { "Register" , COFF::IMAGE_SYM_CLASS_REGISTER },
290 { "ExternalDef" , COFF::IMAGE_SYM_CLASS_EXTERNAL_DEF },
291 { "Label" , COFF::IMAGE_SYM_CLASS_LABEL },
292 { "UndefinedLabel" , COFF::IMAGE_SYM_CLASS_UNDEFINED_LABEL },
293 { "MemberOfStruct" , COFF::IMAGE_SYM_CLASS_MEMBER_OF_STRUCT },
294 { "Argument" , COFF::IMAGE_SYM_CLASS_ARGUMENT },
295 { "StructTag" , COFF::IMAGE_SYM_CLASS_STRUCT_TAG },
296 { "MemberOfUnion" , COFF::IMAGE_SYM_CLASS_MEMBER_OF_UNION },
297 { "UnionTag" , COFF::IMAGE_SYM_CLASS_UNION_TAG },
298 { "TypeDefinition" , COFF::IMAGE_SYM_CLASS_TYPE_DEFINITION },
299 { "UndefinedStatic", COFF::IMAGE_SYM_CLASS_UNDEFINED_STATIC },
300 { "EnumTag" , COFF::IMAGE_SYM_CLASS_ENUM_TAG },
301 { "MemberOfEnum" , COFF::IMAGE_SYM_CLASS_MEMBER_OF_ENUM },
302 { "RegisterParam" , COFF::IMAGE_SYM_CLASS_REGISTER_PARAM },
303 { "BitField" , COFF::IMAGE_SYM_CLASS_BIT_FIELD },
304 { "Block" , COFF::IMAGE_SYM_CLASS_BLOCK },
305 { "Function" , COFF::IMAGE_SYM_CLASS_FUNCTION },
306 { "EndOfStruct" , COFF::IMAGE_SYM_CLASS_END_OF_STRUCT },
307 { "File" , COFF::IMAGE_SYM_CLASS_FILE },
308 { "Section" , COFF::IMAGE_SYM_CLASS_SECTION },
309 { "WeakExternal" , COFF::IMAGE_SYM_CLASS_WEAK_EXTERNAL },
310 { "CLRToken" , COFF::IMAGE_SYM_CLASS_CLR_TOKEN }
313 static const EnumEntry<COFF::COMDATType> ImageCOMDATSelect[] = {
314 { "NoDuplicates", COFF::IMAGE_COMDAT_SELECT_NODUPLICATES },
315 { "Any" , COFF::IMAGE_COMDAT_SELECT_ANY },
316 { "SameSize" , COFF::IMAGE_COMDAT_SELECT_SAME_SIZE },
317 { "ExactMatch" , COFF::IMAGE_COMDAT_SELECT_EXACT_MATCH },
318 { "Associative" , COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE },
319 { "Largest" , COFF::IMAGE_COMDAT_SELECT_LARGEST },
320 { "Newest" , COFF::IMAGE_COMDAT_SELECT_NEWEST }
323 static const EnumEntry<COFF::WeakExternalCharacteristics>
325 { "NoLibrary", COFF::IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY },
326 { "Library" , COFF::IMAGE_WEAK_EXTERN_SEARCH_LIBRARY },
327 { "Alias" , COFF::IMAGE_WEAK_EXTERN_SEARCH_ALIAS }
487 if (Magic != COFF::DEBUG_SECTION_MAGIC) { in printCodeViewDebugInfo()
514 case COFF::DEBUG_SYMBOL_SUBSECTION: in printCodeViewDebugInfo()
518 case COFF::DEBUG_LINE_TABLE_SUBSECTION: { in printCodeViewDebugInfo()
545 case COFF::DEBUG_STRING_TABLE_SUBSECTION: in printCodeViewDebugInfo()
554 case COFF::DEBUG_INDEX_SUBSECTION: in printCodeViewDebugInfo()
661 case COFF::DEBUG_SYMBOL_TYPE_PROC_START: { in printCodeViewSymbolsSubsection()
692 case COFF::DEBUG_SYMBOL_TYPE_PROC_END: { in printCodeViewSymbolsSubsection()
745 COFF::SectionCharacteristics(0x00F00000)); in printSections()
767 !(Section->Characteristics & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA)) { in printSections()
853 if (SectionNumber == llvm::COFF::IMAGE_SYM_DEBUG) in getSectionName()
855 if (SectionNumber == llvm::COFF::IMAGE_SYM_ABSOLUTE) in getSectionName()
857 if (SectionNumber == llvm::COFF::IMAGE_SYM_UNDEFINED) in getSectionName()
949 if (Section && Section->Characteristics & COFF::IMAGE_SCN_LNK_COMDAT in printSymbol()
950 && Aux->Selection == COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) { in printSymbol()
994 case COFF::IMAGE_FILE_MACHINE_AMD64: { in printUnwindInfo()
1006 case COFF::IMAGE_FILE_MACHINE_ARMNT: { in printUnwindInfo()
1118 case COFF::IMAGE_REL_BASED_ABSOLUTE: return "ABSOLUTE"; in getBaseRelocTypeName()
1119 case COFF::IMAGE_REL_BASED_HIGH: return "HIGH"; in getBaseRelocTypeName()
1120 case COFF::IMAGE_REL_BASED_LOW: return "LOW"; in getBaseRelocTypeName()
1121 case COFF::IMAGE_REL_BASED_HIGHLOW: return "HIGHLOW"; in getBaseRelocTypeName()
1122 case COFF::IMAGE_REL_BASED_HIGHADJ: return "HIGHADJ"; in getBaseRelocTypeName()
1123 case COFF::IMAGE_REL_BASED_ARM_MOV32T: return "ARM_MOV32(T)"; in getBaseRelocTypeName()
1124 case COFF::IMAGE_REL_BASED_DIR64: return "DIR64"; in getBaseRelocTypeName()