📄 ldcfg.c
字号:
/*********************************************************************//* *//* MODULE: ldcfg.c 1.2 *//* DATE: 17:57:13 - 97/12/05 *//* PURPOSE: Configuration File for pSOSystem Loader *//* *//*-------------------------------------------------------------------*//* *//* Copyright 1993, Integrated Systems, Inc. *//* ALL RIGHTS RESERVED *//* *//* Permission is hereby granted to licensees of Integrated Systems,*//* Inc. products to use or abstract this computer program for the *//* sole purpose of implementing a product based on Integrated *//* Systems, Inc. products. No other rights to reproduce, use, *//* or disseminate this program, whether in part or in whole, are *//* granted. *//* *//* Integrated Systems, Inc. makes no representation or warranties *//* with respect to the performance of this computer program, and *//* specifically disclaims any responsibility for any damages, *//* special or consequential, connected with its use. *//* *//*********************************************************************/#include <loader.h>#include "sys_conf.h"/*********************************************************************//* *//* Change LD_MAX_LOAD in sys_conf.h to configure the maximum number *//* of object files which can be simultaneously loaded by the loader. *//* *//*********************************************************************/int ld_max_load=LD_MAX_LOAD;/*********************************************************************//* *//* In sys_conf.h, LD_*_MODULE can be set to either configure or *//* deconfigure various object file loader modules. By default, the *//* all the supported file formats for your platform are set to YES. *//* To de-configure an Object File Loader Module change YES to NO *//* corresponding to the module you want to de-configure. *//* *//*********************************************************************/#if (defined(LD_BNRY_MODULE) && LD_BNRY_MODULE == YES)extern unsigned long bnry_init(), bnry_gethdr(), bnry_load();extern unsigned long bnry_unload(), bnry_release();#endif#if (defined(LD_COFF_MODULE) && LD_COFF_MODULE == YES)extern unsigned long coff_init(), coff_gethdr(), coff_load();extern unsigned long coff_unload(), coff_release();#endif#if (defined(LD_ELF_MODULE) && LD_ELF_MODULE == YES)extern unsigned long elf_init(void), elf_gethdr(int fd, OF_INFO *of_info);extern unsigned long elf_load(OF_INFO *of_info);extern unsigned long elf_unload(OF_INFO *of_info);extern unsigned long elf_release(OF_INFO *of_info);#endif#if (defined(LD_IEEE_MODULE) && LD_IEEE_MODULE == YES)extern unsigned long ieee_init(), ieee_gethdr(), ieee_load();extern unsigned long ieee_unload(), ieee_release();#endif#if (defined(LD_IHEX_MODULE) && LD_IHEX_MODULE == YES)extern unsigned long ihex_init(), ihex_gethdr(), ihex_load();extern unsigned long ihex_unload(), ihex_release();#endif#if (defined(LD_REX_MODULE) && LD_REX_MODULE == YES)extern unsigned long rex_init(), rex_gethdr(), rex_load();extern unsigned long rex_unload(), rex_release();#endif#if (defined(LD_SREC_MODULE) && LD_SREC_MODULE == YES)extern unsigned long srec_init(void), srec_gethdr(int fd, OF_INFO *of_info);extern unsigned long srec_load(OF_INFO *of_info);extern unsigned long srec_unload(OF_INFO *of_info);extern unsigned long srec_release(OF_INFO *of_info);#endifOFM_CTRL OfmCtrl[] = {#if (defined(LD_BNRY_MODULE) && LD_BNRY_MODULE == YES) {"BNRY", bnry_init, bnry_gethdr, bnry_load, bnry_unload, bnry_release},#endif#if (defined(LD_COFF_MODULE) && LD_COFF_MODULE == YES) {"COFF", coff_init, coff_gethdr, coff_load, coff_unload, coff_release},#endif#if (defined(LD_ELF_MODULE) && LD_ELF_MODULE == YES) {"ELF ", elf_init, elf_gethdr, elf_load, elf_unload, elf_release},#endif#if (defined(LD_IEEE_MODULE) && LD_IEEE_MODULE == YES) {"IEEE", ieee_init, ieee_gethdr, ieee_load, ieee_unload, ieee_release},#endif#if (defined(LD_IHEX_MODULE) && LD_IHEX_MODULE == YES) {"IHEX", ihex_init, ihex_gethdr, ihex_load, ihex_unload, ihex_release},#endif#if (defined(LD_REX_MODULE) && LD_REX_MODULE == YES) {"REX ", rex_init, rex_gethdr, rex_load, rex_unload, rex_release},#endif#if (defined(LD_SREC_MODULE) && LD_SREC_MODULE == YES) {"SREC", srec_init, srec_gethdr, srec_load, srec_unload, srec_release},#endif {0, 0, 0, 0, 0, 0} /* WARNING: Don't remove this line! */ };
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -