summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src/DynamicLinkerPEF.cc
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-05-01 08:50:44 +0200
committerAmlal <amlal@nekernel.org>2025-05-01 08:50:44 +0200
commitfb12b9730d78052f5cafbd84fbc9a830a22cec17 (patch)
treedf67a0724de4c76ce594222747220c233c3bc7f5 /dev/LibCompiler/src/DynamicLinkerPEF.cc
parent35ac989886dcab70ff4ba6bc6a1359d1290560ad (diff)
dev, LibCompiler: format codebase.0.0.1
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src/DynamicLinkerPEF.cc')
-rw-r--r--dev/LibCompiler/src/DynamicLinkerPEF.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/dev/LibCompiler/src/DynamicLinkerPEF.cc b/dev/LibCompiler/src/DynamicLinkerPEF.cc
index 0def365..1b2418f 100644
--- a/dev/LibCompiler/src/DynamicLinkerPEF.cc
+++ b/dev/LibCompiler/src/DynamicLinkerPEF.cc
@@ -233,8 +233,8 @@ LIBCOMPILER_MODULE(DynamicLinker64PEF) {
pef_container.Version = kPefVersion;
// specify the start address, can be 0x10000
- pef_container.Start = kLinkerDefaultOrigin;
- pef_container.HdrSz = sizeof(LibCompiler::PEFContainer);
+ pef_container.Start = kLinkerDefaultOrigin;
+ pef_container.HdrSz = sizeof(LibCompiler::PEFContainer);
pef_container.Checksum = 0UL;
std::ofstream output_fc(kOutput, std::ofstream::binary);
@@ -331,12 +331,12 @@ LIBCOMPILER_MODULE(DynamicLinker64PEF) {
}
ld_mark_header:
- command_header.Offset = offset_of_obj;
- command_header.Kind = ae_records[ae_record_index].fKind;
- command_header.Size = ae_records[ae_record_index].fSize;
- command_header.Cpu = ae_header.fArch;
- command_header.VMAddress = org; /// TODO:
- command_header.SubCpu = ae_header.fSubArch;
+ command_header.Offset = offset_of_obj;
+ command_header.Kind = ae_records[ae_record_index].fKind;
+ command_header.Size = ae_records[ae_record_index].fSize;
+ command_header.Cpu = ae_header.fArch;
+ command_header.VMAddress = org; /// TODO:
+ command_header.SubCpu = ae_header.fSubArch;
org += command_header.Size;
@@ -560,7 +560,7 @@ LIBCOMPILER_MODULE(DynamicLinker64PEF) {
MemoryCopy(end_exec_hdr.Name, "Container:Exec:END", strlen("Container:Exec:END"));
- end_exec_hdr.Size = strlen(end_exec_hdr.Name);
+ end_exec_hdr.Size = strlen(end_exec_hdr.Name);
command_headers.push_back(end_exec_hdr);