/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-â
âvi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8                                :viâ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¡
â Copyright 2020 Justine Alexandra Roberts Tunney                              â
â                                                                              â
â Permission to use, copy, modify, and/or distribute this software for         â
â any purpose with or without fee is hereby granted, provided that the         â
â above copyright notice and this permission notice appear in all copies.      â
â                                                                              â
â THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL                â
â WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED                â
â WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE             â
â AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL         â
â DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR        â
â PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER               â
â TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR             â
â PERFORMANCE OF THIS SOFTWARE.                                                â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ*/
#include "libc/nt/pedef.internal.h"
#include "tool/decode/lib/peidnames.h"

const struct IdName kNtImageFileMachineNames[] = {
    {kNtImageFileMachineUnknown, "kNtImageFileMachineUnknown"},
    {kNtImageFileMachineTargetHost, "kNtImageFileMachineTargetHost"},
    {kNtImageFileMachineI386, "kNtImageFileMachineI386"},
    {kNtImageFileMachineR3000, "kNtImageFileMachineR3000"},
    {kNtImageFileMachineR4000, "kNtImageFileMachineR4000"},
    {kNtImageFileMachineR10000, "kNtImageFileMachineR10000"},
    {kNtImageFileMachineWcemipsv2, "kNtImageFileMachineWcemipsv2"},
    {kNtImageFileMachineAlpha, "kNtImageFileMachineAlpha"},
    {kNtImageFileMachineSh3, "kNtImageFileMachineSh3"},
    {kNtImageFileMachineSh3dsp, "kNtImageFileMachineSh3dsp"},
    {kNtImageFileMachineSh3e, "kNtImageFileMachineSh3e"},
    {kNtImageFileMachineSh4, "kNtImageFileMachineSh4"},
    {kNtImageFileMachineSh5, "kNtImageFileMachineSh5"},
    {kNtImageFileMachineArm, "kNtImageFileMachineArm"},
    {kNtImageFileMachineThumb, "kNtImageFileMachineThumb"},
    {kNtImageFileMachineArmnt, "kNtImageFileMachineArmnt"},
    {kNtImageFileMachineAm33, "kNtImageFileMachineAm33"},
    {kNtImageFileMachinePowerpc, "kNtImageFileMachinePowerpc"},
    {kNtImageFileMachinePowerpcfp, "kNtImageFileMachinePowerpcfp"},
    {kNtImageFileMachineIa64, "kNtImageFileMachineIa64"},
    {kNtImageFileMachineMips16, "kNtImageFileMachineMips16"},
    {kNtImageFileMachineAlpha64, "kNtImageFileMachineAlpha64"},
    {kNtImageFileMachineMipsfpu, "kNtImageFileMachineMipsfpu"},
    {kNtImageFileMachineMipsfpu16, "kNtImageFileMachineMipsfpu16"},
    {kNtImageFileMachineAxp64, "kNtImageFileMachineAxp64"},
    {kNtImageFileMachineTricore, "kNtImageFileMachineTricore"},
    {kNtImageFileMachineCef, "kNtImageFileMachineCef"},
    {kNtImageFileMachineEbc, "kNtImageFileMachineEbc"},
    {kNtImageFileMachineNexgen32e, "kNtImageFileMachineNexgen32e"},
    {kNtImageFileMachineM32r, "kNtImageFileMachineM32r"},
    {kNtImageFileMachineArm64, "kNtImageFileMachineArm64"},
    {kNtImageFileMachineCee, "kNtImageFileMachineCee"},
    {0, 0},
};

const struct IdName kNtPeOptionalHeaderMagicNames[] = {
    {kNtPe32bit, "kNtPe32bit"},
    {kNtPe64bit, "kNtPe64bit"},
    {0, 0},
};

const struct IdName kNtImageDllcharacteristicNames[] = {
    {kNtImageDllcharacteristicsHighEntropyVa,
     "kNtImageDllcharacteristicsHighEntropyVa"},
    {kNtImageDllcharacteristicsDynamicBase,
     "kNtImageDllcharacteristicsDynamicBase"},
    {kNtImageDllcharacteristicsForceIntegrity,
     "kNtImageDllcharacteristicsForceIntegrity"},
    {kNtImageDllcharacteristicsNxCompat, "kNtImageDllcharacteristicsNxCompat"},
    {kNtImageDllcharacteristicsNoIsolation,
     "kNtImageDllcharacteristicsNoIsolation"},
    {kNtImageDllcharacteristicsNoSeh, "kNtImageDllcharacteristicsNoSeh"},
    {kNtImageDllcharacteristicsNoBind, "kNtImageDllcharacteristicsNoBind"},
    {kNtImageDllcharacteristicsAppcontainer,
     "kNtImageDllcharacteristicsAppcontainer"},
    {kNtImageDllcharacteristicsWdmDriver,
     "kNtImageDllcharacteristicsWdmDriver"},
    {kNtImageDllcharacteristicsGuardCf, "kNtImageDllcharacteristicsGuardCf"},
    {kNtImageDllcharacteristicsTerminalServerAware,
     "kNtImageDllcharacteristicsTerminalServerAware"},
    {0, 0},
};

const struct IdName kNtImageSubsystemNames[] = {
    {kNtImageSubsystemUnknown, "kNtImageSubsystemUnknown"},
    {kNtImageSubsystemNative, "kNtImageSubsystemNative"},
    {kNtImageSubsystemWindowsGui, "kNtImageSubsystemWindowsGui"},
    {kNtImageSubsystemWindowsCui, "kNtImageSubsystemWindowsCui"},
    {kNtImageSubsystemOs2Cui, "kNtImageSubsystemOs2Cui"},
    {kNtImageSubsystemPosixCui, "kNtImageSubsystemPosixCui"},
    {kNtImageSubsystemNativeWindows, "kNtImageSubsystemNativeWindows"},
    {kNtImageSubsystemWindowsCeGui, "kNtImageSubsystemWindowsCeGui"},
    {kNtImageSubsystemEfiApplication, "kNtImageSubsystemEfiApplication"},
    {kNtImageSubsystemEfiBootServiceDriver,
     "kNtImageSubsystemEfiBootServiceDriver"},
    {kNtImageSubsystemEfiRuntimeDriver, "kNtImageSubsystemEfiRuntimeDriver"},
    {kNtImageSubsystemEfiRom, "kNtImageSubsystemEfiRom"},
    {kNtImageSubsystemXbox, "kNtImageSubsystemXbox"},
    {kNtImageSubsystemWindowsBootApplication,
     "kNtImageSubsystemWindowsBootApplication"},
    {kNtImageSubsystemXboxCodeCatalog, "kNtImageSubsystemXboxCodeCatalog"},
    {0, 0},
};

const struct IdName kNtImageScnNames[] = {
    {kNtImageScnTypeNoPad, "kNtImageScnTypeNoPad"},
    {kNtImageScnCntCode, "kNtImageScnCntCode"},
    {kNtImageScnCntInitializedData, "kNtImageScnCntInitializedData"},
    {kNtImageScnCntUninitializedData, "kNtImageScnCntUninitializedData"},
    {kNtImageScnLnkOther, "kNtImageScnLnkOther"},
    {kNtImageScnLnkInfo, "kNtImageScnLnkInfo"},
    {kNtImageScnLnkRemove, "kNtImageScnLnkRemove"},
    {kNtImageScnLnkComdat, "kNtImageScnLnkComdat"},
    {kNtImageScnNoDeferSpecExc, "kNtImageScnNoDeferSpecExc"},
    {kNtImageScnGprel, "kNtImageScnGprel"},
    {kNtImageScnMemFardata, "kNtImageScnMemFardata"},
    {kNtImageScnMemPurgeable, "kNtImageScnMemPurgeable"},
    {kNtImageScnMem16bit, "kNtImageScnMem16bit"},
    {kNtImageScnMemLocked, "kNtImageScnMemLocked"},
    {kNtImageScnMemPreload, "kNtImageScnMemPreload"},
    {0, 0},
};

const struct IdName kNtImageDirectoryEntryNames[] = {
    {kNtImageDirectoryEntryExport, "kNtImageDirectoryEntryExport"},
    {kNtImageDirectoryEntryImport, "kNtImageDirectoryEntryImport"},
    {kNtImageDirectoryEntryResource, "kNtImageDirectoryEntryResource"},
    {kNtImageDirectoryEntryException, "kNtImageDirectoryEntryException"},
    {kNtImageDirectoryEntrySecurity, "kNtImageDirectoryEntrySecurity"},
    {kNtImageDirectoryEntryBasereloc, "kNtImageDirectoryEntryBasereloc"},
    {kNtImageDirectoryEntryDebug, "kNtImageDirectoryEntryDebug"},
    {kNtImageDirectoryEntryArchitecture, "kNtImageDirectoryEntryArchitecture"},
    {kNtImageDirectoryEntryGlobalptr, "kNtImageDirectoryEntryGlobalptr"},
    {kNtImageDirectoryEntryTls, "kNtImageDirectoryEntryTls"},
    {kNtImageDirectoryEntryLoadConfig, "kNtImageDirectoryEntryLoadConfig"},
    {kNtImageDirectoryEntryBoundImport, "kNtImageDirectoryEntryBoundImport"},
    {kNtImageDirectoryEntryIat, "kNtImageDirectoryEntryIat"},
    {kNtImageDirectoryEntryDelayImport, "kNtImageDirectoryEntryDelayImport"},
    {kNtImageDirectoryEntryComDescriptor,
     "kNtImageDirectoryEntryComDescriptor"},
    {0, 0},
};

const struct IdName kNtImageCharacteristicNames[] = {
    {kNtImageFileRelocsStripped, "kNtImageFileRelocsStripped"},
    {kNtImageFileExecutableImage, "kNtImageFileExecutableImage"},
    {kNtImageFileLineNumsStripped, "kNtImageFileLineNumsStripped"},
    {kNtImageFileLocalSymsStripped, "kNtImageFileLocalSymsStripped"},
    {kNtImageFileAggresiveWsTrim, "kNtImageFileAggresiveWsTrim"},
    {kNtImageFileLargeAddressAware, "kNtImageFileLargeAddressAware"},
    {kNtImageFileBytesReversedLo, "kNtImageFileBytesReversedLo"},
    {kNtImageFile32bitMachine, "kNtImageFile32bitMachine"},
    {kNtImageFileDebugStripped, "kNtImageFileDebugStripped"},
    {kNtImageFileRemovableRunFromSwap, "kNtImageFileRemovableRunFromSwap"},
    {kNtImageFileNetRunFromSwap, "kNtImageFileNetRunFromSwap"},
    {kNtImageFileSystem, "kNtImageFileSystem"},
    {kNtImageFileDll, "kNtImageFileDll"},
    {kNtImageFileUpSystemOnly, "kNtImageFileUpSystemOnly"},
    {kNtImageFileBytesReversedHi, "kNtImageFileBytesReversedHi"},
    {0, 0},
};

const struct IdName kNtPeSectionNames[] = {
    {kNtPeSectionCntCode, "kNtPeSectionCntCode"},
    {kNtPeSectionCntInitializedData, "kNtPeSectionCntInitializedData"},
    {kNtPeSectionCntUninitializedData, "kNtPeSectionCntUninitializedData"},
    {kNtPeSectionGprel, "kNtPeSectionGprel"},
    {kNtPeSectionMemDiscardable, "kNtPeSectionMemDiscardable"},
    {kNtPeSectionMemNotCached, "kNtPeSectionMemNotCached"},
    {kNtPeSectionMemNotPaged, "kNtPeSectionMemNotPaged"},
    {kNtPeSectionMemShared, "kNtPeSectionMemShared"},
    {kNtPeSectionMemExecute, "kNtPeSectionMemExecute"},
    {kNtPeSectionMemRead, "kNtPeSectionMemRead"},
    {kNtPeSectionMemWrite, "kNtPeSectionMemWrite"},
    {0, 0},
};
