mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
simplify COFF reloc apply helper
This commit is contained in:
committed by
Ryan Fleury
parent
a5b3df7d1b
commit
63a374cf54
@@ -576,6 +576,12 @@ typedef struct COFF_ImportHeader
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
typedef struct COFF_RelocValue
|
||||
{
|
||||
U64 size;
|
||||
S64 value;
|
||||
} COFF_RelocValue;
|
||||
|
||||
////////////////////////////////
|
||||
// Section
|
||||
|
||||
@@ -596,6 +602,8 @@ internal String8 coff_read_symbol_name(String8 string_table, COFF_SymbolName *na
|
||||
internal U64 coff_apply_size_from_reloc_x64(COFF_Reloc_X64 x);
|
||||
internal U64 coff_apply_size_from_reloc_x86(COFF_Reloc_X86 x);
|
||||
|
||||
internal COFF_RelocValue coff_pick_reloc_valuex64(COFF_Reloc_X64 type, U64 reloc_virtual_offset, U32 symbol_section_number, U32 symbol_section_offset, U32 symbol_virtual_offset, U64 symbol_address);
|
||||
|
||||
////////////////////////////////
|
||||
// Import
|
||||
|
||||
|
||||
Reference in New Issue
Block a user