UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
syms_coff.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#ifndef SYMS_COFF_H
4#define SYMS_COFF_H
5
7//~ nick: Generated Code
8
10
12//~ nick: COFF Format Types
13
14#define SYMS_COFF_MIN_BIG_OBJ_VERSION 2
15
17 0xC7,0xA1,0xBA,0xD1,0xEE,0xBA,0xA9,0x4B,
18 0xAF,0x20,0xFA,0xF6,0x6A,0xA4,0xDC,0xB8,
19};
20
33
34#pragma pack(push, 1)
35
36// Special values for section number field in coff symbol
37#define SYMS_COFF_SYMBOL_UNDEFINED_SECTION 0
38#define SYMS_COFF_SYMBOL_ABS_SECTION ((SYMS_U32)-1)
39#define SYMS_COFF_SYMBOL_DEBUG_SECTION ((SYMS_U32)-2)
40#define SYMS_COFF_SYMBOL_ABS_SECTION_16 ((SYMS_U16)-1)
41#define SYMS_COFF_SYMBOL_DEBUG_SECTION_16 ((SYMS_U16)-2)
42
43typedef union SYMS_CoffSymbolName{
45 struct{
46 // if this field is filled with zeroes we have a long name,
47 // which means name is stored in the string table
48 // and we need to use the offset to look it up...
53
68
83
84// specifies how section data should be modified when placed in the image file.
85typedef struct SYMS_CoffReloc{
86 SYMS_U32 apply_off; // section relative offset where relocation is placed
87 SYMS_U32 isymbol; // zero based index into coff symbol table
88 SYMS_U16 type; // relocation type that depends on the arch
90
91#pragma pack(pop)
92
94//~ nick: COFF Format Functions
95
97
98#endif // SYMS_COFF_H
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition syms_coff.h:21
SYMS_U16 sig2
Definition syms_coff.h:23
SYMS_U16 machine
Definition syms_coff.h:25
SYMS_U16 version
Definition syms_coff.h:24
SYMS_U32 section_count
Definition syms_coff.h:29
SYMS_U32 time_stamp
Definition syms_coff.h:26
SYMS_U32 number_of_symbols
Definition syms_coff.h:31
SYMS_U8 magic[16]
Definition syms_coff.h:27
SYMS_U32 pointer_to_symbol_table
Definition syms_coff.h:30
SYMS_U32 unused[4]
Definition syms_coff.h:28
SYMS_U16 sig1
Definition syms_coff.h:22
Definition syms_coff.h:85
SYMS_U32 isymbol
Definition syms_coff.h:87
SYMS_U32 apply_off
Definition syms_coff.h:86
SYMS_U16 type
Definition syms_coff.h:88
Definition syms_coff.h:54
SYMS_U16 section_number
Definition syms_coff.h:57
struct SYMS_CoffSymbol16::@2334::@2335 u
union SYMS_CoffSymbol16::@2334 type
SYMS_CoffSymDType msb
Definition syms_coff.h:60
SYMS_CoffSymbolName name
Definition syms_coff.h:55
SYMS_CoffSymType lsb
Definition syms_coff.h:61
SYMS_U8 aux_symbol_count
Definition syms_coff.h:66
SYMS_CoffSymStorageClass storage_class
Definition syms_coff.h:65
SYMS_U32 value
Definition syms_coff.h:56
SYMS_U16 v
Definition syms_coff.h:63
Definition syms_coff.h:69
SYMS_CoffSymType lsb
Definition syms_coff.h:76
SYMS_U8 aux_symbol_count
Definition syms_coff.h:81
union SYMS_CoffSymbol32::@2336 type
SYMS_U32 value
Definition syms_coff.h:71
SYMS_CoffSymStorageClass storage_class
Definition syms_coff.h:80
SYMS_CoffSymbolName name
Definition syms_coff.h:70
SYMS_CoffSymDType msb
Definition syms_coff.h:75
SYMS_U32 section_number
Definition syms_coff.h:72
SYMS_U16 v
Definition syms_coff.h:78
struct SYMS_CoffSymbol32::@2336::@2337 u
#define SYMS_API
Definition syms_base.h:29
#define SYMS_GLOBAL
Definition syms_base.h:42
SYMS_GLOBAL SYMS_U8 syms_coff_big_obj_magic[]
Definition syms_coff.h:16
SYMS_API void syms_coff_symbol32_from_coff_symbol16(SYMS_CoffSymbol32 *sym32, SYMS_CoffSymbol16 *sym16)
Definition syms_coff.c:15
uint32_t SYMS_U32
Definition syms_crt_overrides.h:38
uint16_t SYMS_U16
Definition syms_crt_overrides.h:37
uint8_t SYMS_U8
Definition syms_crt_overrides.h:36
SYMS_U8 SYMS_CoffSymDType
Definition syms_meta_coff.h:284
SYMS_U8 SYMS_CoffSymStorageClass
Definition syms_meta_coff.h:246
SYMS_U8 SYMS_CoffSymType
Definition syms_meta_coff.h:225
Definition syms_coff.h:43
SYMS_U8 short_name[8]
Definition syms_coff.h:44
SYMS_U32 zeroes
Definition syms_coff.h:49
SYMS_U32 string_table_offset
Definition syms_coff.h:50
struct SYMS_CoffSymbolName::@2333 long_name