summaryrefslogtreecommitdiffhomepage
path: root/dev/CompilerKit/PEF.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-08-22 15:39:40 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-08-22 15:39:40 +0200
commit209373b1f5770dc175e06996a152df6484f59af2 (patch)
tree93801515752e81a7ce9e5de91bf625d03bb9b4fa /dev/CompilerKit/PEF.h
parenta7b7a7d499578660be897313b30a13963cc9ffd5 (diff)
feat: implement `CompilerKitDylibTraits` container for future and
current frontend tools. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/CompilerKit/PEF.h')
-rw-r--r--dev/CompilerKit/PEF.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/dev/CompilerKit/PEF.h b/dev/CompilerKit/PEF.h
index a997f17..db317fa 100644
--- a/dev/CompilerKit/PEF.h
+++ b/dev/CompilerKit/PEF.h
@@ -41,7 +41,7 @@
#define kPefStart "__ImageStart"
namespace CompilerKit {
- /* @brief Architecture type. */
+/* @brief Architecture type. */
enum {
kPefArchIntel86S,
kPefArchAMD64,
@@ -54,10 +54,10 @@ enum {
kPefArchInvalid = 0xFF,
};
- /* @brief Architecture vendor. */
+/* @brief Architecture vendor. */
enum {
kPefSubArchGeneric = 0,
- kPefSubArchAMD = 200,
+ kPefSubArchAMD = 200,
kPefSubArchIntel,
kPefSubArchARM,
kPefSubArchIBM,
@@ -65,11 +65,11 @@ enum {
enum {
kPefKindInvalid = 0,
- kPefKindExec = 1, /* .exec */
- kPefKindDylib = 2, /* .dylib */
- kPefKindObject = 4, /* .obj */
- kPefKindDebug = 5, /* .dbg */
- kPefKindDriver = 6,
+ kPefKindExec = 1, /* .exec */
+ kPefKindDylib = 2, /* .dylib */
+ kPefKindObject = 4, /* .obj */
+ kPefKindDebug = 5, /* .dbg */
+ kPefKindDriver = 6,
kPefKindCount,
};
@@ -93,7 +93,7 @@ typedef struct PEFContainer final {
/* PEF executable section and commands. */
- /* @brief Command Header, a la Mach-O, designed with FAT binaries and virtual memory in mind. */
+/* @brief Command Header, a la Mach-O, designed with FAT binaries and virtual memory in mind. */
typedef struct PEFCommandHeader final {
Char Name[kPefNameLen]; /* container name */
UInt32 Cpu; /* container cpu */
@@ -102,8 +102,8 @@ typedef struct PEFCommandHeader final {
UInt16 Kind; /* container kind */
UIntPtr Offset; /* File offset */
SizeType OffsetSize;
- UIntPtr VirtualAddress; /* Virtual Address */
- SizeType VirtualSize; /* Virtual Size */
+ UIntPtr VirtualAddress; /* Virtual Address */
+ SizeType VirtualSize; /* Virtual Size */
} PACKED PEFCommandHeader, *PEFCommandHeaderPtr;
enum {