mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-26 21:44:59 -07:00
removed default lib directive parser, moved directive code to obj file,
getting ready to deprecate LNK_Directive struct
This commit is contained in:
@@ -99,6 +99,7 @@ coff_header_info_from_data(String8 data)
|
||||
COFF_HeaderBigObj *big_header = (COFF_HeaderBigObj*)data.str;
|
||||
info.type = COFF_DataType_BIG_OBJ;
|
||||
info.machine = big_header->machine;
|
||||
info.header_size = sizeof(COFF_HeaderBigObj);
|
||||
info.section_array_off = sizeof(COFF_HeaderBigObj);
|
||||
info.section_count_no_null = big_header->section_count;
|
||||
info.string_table_off = big_header->symbol_table_foff + sizeof(COFF_Symbol32) * big_header->symbol_count;
|
||||
@@ -109,6 +110,7 @@ coff_header_info_from_data(String8 data)
|
||||
COFF_Header *header = (COFF_Header*)data.str;
|
||||
info.type = COFF_DataType_OBJ;
|
||||
info.machine = header->machine;
|
||||
info.header_size = sizeof(COFF_Header);
|
||||
info.section_array_off = sizeof(COFF_Header);
|
||||
info.section_count_no_null = header->section_count;
|
||||
info.string_table_off = header->symbol_table_foff + sizeof(COFF_Symbol16) * header->symbol_count;
|
||||
|
||||
+2
-1
@@ -634,8 +634,9 @@ typedef U32 COFF_DataType;
|
||||
|
||||
typedef struct COFF_HeaderInfo
|
||||
{
|
||||
COFF_MachineType machine;
|
||||
COFF_DataType type;
|
||||
COFF_MachineType machine;
|
||||
U64 header_size;
|
||||
U64 section_array_off;
|
||||
U64 section_count_no_null;
|
||||
U64 string_table_off;
|
||||
|
||||
Reference in New Issue
Block a user