From fd23e65f1628ceef0da7f354697b3441fec77c79 Mon Sep 17 00:00:00 2001 From: _xeroxz Date: Wed, 10 Mar 2021 03:11:15 +0000 Subject: [PATCH] Update linker.cpp --- Theodosius/linker/linker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Theodosius/linker/linker.cpp b/Theodosius/linker/linker.cpp index 384edf1..a4af023 100644 --- a/Theodosius/linker/linker.cpp +++ b/Theodosius/linker/linker.cpp @@ -77,9 +77,9 @@ namespace lnk while (reinterpret_cast(archive_headers) < lib_file.data() + lib_file.size()) { - // some absolutely fucked up shit I have to - // do since the linker is off by 1 sometimes... - // this sounds weird... I know it sounds weird... its weird... + // im not doing alignment correctly, i cannot find + // anything online about it either, this "works" for now, but it will probably not + // on other linkers.... if (archive_headers->Name[0] == '\n') archive_headers = reinterpret_cast( reinterpret_cast(archive_headers) + 1);