; /****************************************************************************
; **
; **  Name:  LDR.DEF
; **
; **  Description:
; **      Module definition file for ELF Loader.
; **
; **  Status:  CODED
; **  Copyright (C) 1991 Microtek International.  All rights reserved.
; **
; *****************************************************************************/
LIBRARY       LDELF
DESCRIPTION  'ELF/Dwarf Loader'
EXETYPE      WINDOWS
STUB       'WINSTUB.EXE'

CODE  PRELOAD MOVEABLE DISCARDABLE
DATA  PRELOAD MOVEABLE SINGLE

HEAPSIZE     8192

EXPORTS
   LibMain                       @1                ; initialization
   WEP                           @2 RESIDENTNAME   ; termination
   LdrLoad                       @3
   LdrLoadWin                    @4
   LdrLoadModule                 @5
   InitCServer                   @6
   LdrGetStartPC                 @7                ; event callback
   LdrGetStack                   @8                ; event callback
   LdrGetOptions                 @9                ; event callback
   LdrGetLoadRegion              @10               ; event callback
   LdrGetFileStatus              @11               ; event callback
   LdrCliSetMemSize              @12
   LdrCliSetToolUse              @13
   LdrSelToolDlgProc             @14               ; Dialog proc
   LdrCliSetSecNames             @15
   LdrCliMergeSections           @16
   LoadResultCallback            @17
   LoadAsyncCallback             @18
   LdrQueueInit                  @19
   LdrQueueSetAddressRecord      @20
   LdrQueueDataRecord            @21
   LdrQueueFlush                 @22
   LdrQueueWait                  @23
   LdrQueueCheckLoadAbort        @24
   LdrQueueGetLoadAbort          @25
   LdrGetToolUse                 @26
   LdrLoadProgress               @27
   LdrGetIniDir                  @28
   LdrSpaceMode                  @29
   LdrToolSelect                 @30

IMPORTS
   SDSERVER.SdRegisterSemaphore
   SDSERVER.SdGetMemberIndex
   SDSERVER.SdRegister
   SDSERVER.SdnRegister
   SDSERVER.SdUnRegister
   SDSERVER.SdUnRegisterSemaphore
   SDSERVER.SdWriteMember
   SDSERVER.SdReadMember
   SDSERVER.SdWritePartialMember
   SDSERVER.SdWriteCmdReadResponse
   SDSERVER.SdnWriteCmdReadResponse
   SDSERVER.SdnReadMember
   SDSERVER.SdnReadPartialMember
   SDSERVER.SdnWriteMember
   SDSERVER.SdnWritePartialMember
   SDSERVER.SdnWriteMemberIfChanged
   SDSERVER.SdnWritePartialMemberAsync
   SDSERVER.SdnData
   SDSERVER.SdsAsyncWait
   SDSERVER.SdsInputAvailable

   SYMBL.SymAddBaseCreate
   SYMBL.SymAddModuleCreate
   SYMBL.SymAddModuleClose
   SYMBL.SymAddModuleOpen
   SYMBL.SymAddModuleOpenByDesc
   SYMBL.SymAddFuncCreate
   SYMBL.SymAddFuncClose
   SYMBL.SymAddFuncOpen
   SYMBL.SymAddVar
   SYMBL.SymAddTypeHeader
   SYMBL.SymAddLinenum
   SYMBL.SymAddLinenumStart
   SYMBL.SymAddLinenumEnd
   SYMBL.SymAddTypeOverwriteSize
   SYMBL.SymAddLoadStart
   SYMBL.SymAddLoadEnd
   SYMBL.SymAddSymbolSetAddr
   SYMBL.SymAddTypeBitfield
   SYMBL.SymAddTypeCArray
   SYMBL.SymAddTypeStructUnion
   SYMBL.SymAddTypeClass
   SYMBL.SymAddTypeEnum
   SYMBL.SymAddTypeFunc
   SYMBL.SymAddTypeFuncParam
   SYMBL.SymAddTypePointerTypeIndex
   SYMBL.SymAddTypeReferenceTypeIndex
   SYMBL.SymGetTypeHeader
   SYMBL.SymAddTypeTypeIndex
   SYMBL.SymGetTypeIndexMax
   SYMBL.SymGetSymbolName
   SYMBL.SymAddVarPublic
   SYMBL.SymAddLabelPublic
   SYMBL.SymAddModuleReference
   SYMBL.SymGetModuleDesc
   SYMBL.SymRemoveSymbols
   SYMBL.SymAddVarLifetimeInfo
   SYMBL.SymGetLdrStats
   SYMBL.SymGetBaseType
   SYMBL.SymSetSymbolAddrByDesc
   SYMBL.SymModifyRelation

   ENLIB.EnlEventNotify

   ADDR.AdrCreateAddress
   ADDR.AdrSetAddrOffset
   ADDR.AdrSetAddrRangeLength
   ADDR.AdrDestroyAddress
   ADDR.AdrConvAddressToTextWithParams
   ADDR.AdrGetMaxInputAddrOffset

   CPU.CpuRegisterMultipleRegisters
   CPU.CpuSetFramePtrRegister

   ERRTEXT.ErrGetErrorText
   ERRTEXT.ErrInitDLL
   ERRTEXT.ErrDisplayError
   ERRTEXT.ErrDisplayErrorEx
   ERRTEXT.ErrDisplayString
   ERRTEXT.ErrMessageBox
   ERRTEXT.ErrDisplayFormattedError
   ERRTEXT.ErrSaveMemoryVerifyInfo

   MEM.MemGetAccessSize
   MEM.MemGetVerifyWrites
   MEM.MemProcessVerifyError
   MEM.MemFill

   PROC.ProcInsertCpu
   PROC.ProcReturnProcFamily
   PROC.ProcReturnCpu
   PROC.ProcDefaultStackSize
   PROC.ProcReturnProcessorName
   MALLOC.TMalloc
   MALLOC.TFree

   BKROOT.BkProcessorMustBeHalted
   BKROOT.BkGetEmulationStatus

   CLIULIB.CliLdrProgressActive
   CLIULIB.CliLdrProgressStep
   CLIULIB.CliLdrProgressDone
   CLIULIB.CliLdrProgressDialog
   CLIULIB.CliLdrStatBlock
   CLIULIB.RegisterHelpEntry

; EscKey processing routines
   PVTASK.TskCheckAbort

   ABI68K.iceGetVerifyErrorInfo
   SREC.SldLoadWin
; End of File
