diff options
Diffstat (limited to 'dev/CompilerKit')
| -rw-r--r-- | dev/CompilerKit/PEF.h | 1 | ||||
| -rw-r--r-- | dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/dev/CompilerKit/PEF.h b/dev/CompilerKit/PEF.h index a1feec6..b3950c1 100644 --- a/dev/CompilerKit/PEF.h +++ b/dev/CompilerKit/PEF.h @@ -95,6 +95,7 @@ typedef struct PEFCommandHeader final { UInt32 Flags; /* container flags */ UInt16 Kind; /* container kind */ UIntPtr Offset; /* File offset */ + SizeType OffsetSize; UIntPtr VMAddress; /* Virtual Address */ SizeType Size; /* Virtual Size */ } PACKED PEFCommandHeader, *PEFCommandHeaderPtr; diff --git a/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc b/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc index 946a3c7..55ba9b4 100644 --- a/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc +++ b/dev/CompilerKit/src/Linker/DynamicLinker64PEF.cc @@ -313,8 +313,9 @@ NECTI_MODULE(DynamicLinker64PEF) { command_header.Kind = ae_records[ae_record_index].fKind; command_header.Size = ae_records[ae_record_index].fSize; command_header.Cpu = hdr.fArch; - command_header.VMAddress = org; /// TODO: + command_header.VMAddress = org; command_header.SubCpu = hdr.fSubArch; + command_header.OffsetSize = ae_records[ae_record_index].fSize; org += command_header.Size; |
