summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/NFC
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-04-16 14:05:51 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-04-16 14:05:51 +0200
commit013998a768a00618e344069c0ad2b0048c62e329 (patch)
treebc77a2d2ad70d523348114d3b46a2a9887f65d40 /dev/LibCompiler/NFC
parent81047fcda15a6b1c68fc4de30cb25971f39a209c (diff)
cc, LibCompiler: source code refactor and tweaks.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/NFC')
-rw-r--r--dev/LibCompiler/NFC/AE.h5
-rw-r--r--dev/LibCompiler/NFC/ErrorID.h1
-rw-r--r--dev/LibCompiler/NFC/PEF.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/dev/LibCompiler/NFC/AE.h b/dev/LibCompiler/NFC/AE.h
index d674c6f..fdf42a5 100644
--- a/dev/LibCompiler/NFC/AE.h
+++ b/dev/LibCompiler/NFC/AE.h
@@ -19,10 +19,9 @@
#define kAEMagLen (2)
#define kAENullType (0x00)
-// Advanced Executable File Format for MetroLink.
+// Advanced Executable File Format for ld64.
// Reloctable by offset is the default strategy.
-// You can also relocate at runtime but that's up to the operating system
-// loader.
+// You can also relocate at runtime but that's up to the operating system loader.
namespace LibCompiler
{
diff --git a/dev/LibCompiler/NFC/ErrorID.h b/dev/LibCompiler/NFC/ErrorID.h
index 04cedd2..e7f06e1 100644
--- a/dev/LibCompiler/NFC/ErrorID.h
+++ b/dev/LibCompiler/NFC/ErrorID.h
@@ -12,6 +12,7 @@
#include <LibCompiler/Defines.h>
#include <LibCompiler/NFC/ErrorOr.h>
+#define LIBCOMPILER_SUCCESSS 0
#define LIBCOMPILER_EXEC_ERROR -30
#define LIBCOMPILER_FILE_NOT_FOUND -31
#define LIBCOMPILER_DIR_NOT_FOUND -32
diff --git a/dev/LibCompiler/NFC/PEF.h b/dev/LibCompiler/NFC/PEF.h
index 7fc5ef4..1148dea 100644
--- a/dev/LibCompiler/NFC/PEF.h
+++ b/dev/LibCompiler/NFC/PEF.h
@@ -86,7 +86,7 @@ namespace LibCompiler
UIntPtr Start; /* Origin of code */
SizeType HdrSz; /* Size of header */
SizeType Count; /* container header count */
- } PACKED PEFContainer;
+ } PACKED PEFContainer, *PEFContainerPtr;
/* First PEFCommandHeader starts after PEFContainer */
/* Last container is __exec_end */
@@ -102,7 +102,7 @@ namespace LibCompiler
UInt16 Kind; /* container kind */
UIntPtr Offset; /* file offset */
SizeType Size; /* file size */
- } PACKED PEFCommandHeader;
+ } PACKED PEFCommandHeader, *PEFCommandHeaderPtr;
enum
{