// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (See accompanying // file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0) // Official repository: https://github.com/nekernel-org/nectar #ifndef _NECTAR_XCOFF_H_ #define _NECTAR_XCOFF_H_ #include #define kXCOFF64Magic 0x01F7 #define kXCOFFRelFlg 0x0001 #define kXCOFFExecutable 0x0002 #define kXCOFFLnno 0x0004 #define kXCOFFLSyms 0x0008 namespace CompilerKit { struct XCoffFileHeader; /// @brief XCoff file header. typedef struct XCoffFileHeader { UInt16 fMagic; UInt16 fTarget; UInt16 fNumSecs; UInt32 fTimeDat; UIntPtr fSymPtr; UInt32 fNumSyms; UInt16 fOptHdr; // ?: Number of bytes in optional header } XCoffFileHeader; typedef struct XCoffFileHeader* XCoffFileHeaderPtr; } // namespace CompilerKit #endif // ifndef _NECTAR_XCOFF_H_