123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /***************************************************************************
- * 中航工业计算所 版权所有
- * Copyright (C) 2011 AVIC ACTRI Inc. All Rights Reserved.
- ***************************************************************************/
- /************************头 文 件*******************************************/
- #include <sysImage.h>
- /************************宏 定 义*******************************************/
- /************************类型定义******************************************/
- typedef struct
- {
- T_ImageHeadInfo imgHead;
- UINT8 arch[10];
- }IMG_INFO;
- /***********************外部变量声明****************************************/
- extern T_CHAR _code_start[];
- extern T_CHAR _code_size[];
- extern T_CHAR load__code_start[];
- extern T_CHAR _data_start[];
- extern T_CHAR _data_size[];
- extern T_CHAR load__data_start[];
- extern T_CHAR _bss_start[];
- extern T_CHAR _bss_size[];
- extern T_CHAR load__bss_start[];
- extern unsigned long o2m_symbol_table[];
- /************************全局变量******************************/
- IMG_INFO _imgHeader __attribute__((__section__(".__ImageInfo"))) =
- {
- {
- "os", /*映像名*/
- "version1", /*映像版本*/
- 3, /*段总数*/
- 0xAA55AA55, /*魔数,用于判断映像是否存在*/
- o2m_symbol_table,
- /* 映像段 */
- {
- {COS_IMG_SECTION_TEXT,(ULONG)load__code_start,(ULONG)_code_start,(ULONG)_code_size},
- {COS_IMG_SECTION_DATA,(ULONG)load__data_start,(ULONG)_data_start,(ULONG)_data_size},
- {COS_IMG_SECTION_BSS,(ULONG)load__bss_start,(ULONG)_bss_start,(ULONG)_bss_size},
- }
- },
- "arm"/* 体系结构*/
- };
|