====================
ELF/DWARF from XLINK
====================
Updated: $Date: 2010-02-05 14:07:22 +0100 (fr, 05 feb 2010) $
Archived: $Revision: 42975 $
This document describes particularities of XLINK's ELF/DWARF output.
========
Contents
========
1. Overview
2. Program Scope Entries
3. Type Entries
4. Source Line Information
5. C++ Names
6. Auto Variables
7. Supported Targets
8. Removed Variables
9. Call Frame Information
10. Note Section
11. Register tuples
===========
1. Overview
===========
XLINK output conforms to ELF as described in "Executable and Linkable
Format (ELF)", and DWARF version 2, as described in "DWARF Debugging
Information Format" revision 2.0.0 (July 27, 1993), both part of the
Tools Interface Standard Portable Formats Specification, Version 1.1.
XLINK output is always an ELF executable file, not an ELF relocatable
file. It can contain the following sections:
.shstrtab Section names
.strtab Strings
.symtab Symbol table
.debug_info DWARF debug info
.debug_abbrev DWARF abbreviation table
.debug_line DWARF source line info
.debug_frame DWARF call frame info
.debug_aranges DWARF quick lookup table
.debug_pubnames DWARF quick lookup table
.note.iar Note section with IAR format flags
The .debug_info, .debug_abbrev, .debug_line, .debug_frame,
.debug_aranges and .debug_pubnames sections are not output if the -yn
format variant modifier is given. The -yw format variant modifier
suppresses generation of the .debug_aranges section. The -yb format
variant modifier suppresses generation of the .debug_pubnames section.
The .debug_frame section is only output by the linker if the code was
compiled with a compiler that provides this information (basically a
compiler that uses UBROF 9 or later).
========================
2. Program Scope Entries
========================
This is to specify which record types are used for each entry type.
All DW_AT_location attributes use a single DW_OP_addr operation.
Compilation Unit (DW_TAG_compile_unit)
----------------
Possible children: Variable
Label
Static Data Member Definition
Function
All types
DW_AT_comp_dir DW_FORM_string
DW_AT_name DW_FORM_string
DW_AT_language DW_FORM_data1
DW_AT_stmt_list DW_FORM_data4
DW_AT_producer DW_FORM_string
DW_AT_low_pc DW_FROM_addr
DW_AT_high_pc DW_FROM_addr
Note: The data for DW_AT_comp_dir is always an empty string ("") in
output from XLINK, it is output only because one DWARF-reader
demanded that it should be present.
Variable (DW_TAG_variable)
--------
DW_AT_type DW_FORM_ref_addr
DW_AT_name DW_FORM_string
DW_AT_external DW_FORM_flag For file scope variables
DW_AT_location DW_FORM_block1
Label (DW_TAG_label)
-----
DW_AT_name DW_FORM_string
DW_AT_external DW_FORM_flag
DW_AT_location DW_FORM_block1
Static Data Member Definition (DW_TAG_variable)
-----------------------------
DW_AT_specification DW_FORM_ref_addr Declaration (in class)
DW_AT_type DW_FORM_ref_addr
DW_AT_name DW_FORM_string
DW_AT_external DW_FORM_flag
DW_AT_location DW_FORM_block1
Function (DW_TAG_subprogram)
--------
Possible children: Variable
Lexical Block
DW_AT_name DW_FORM_string
DW_AT_type DW_FORM_ref_addr
DW_AT_external DW_FORM_data1
DW_AT_artificial DW_FORM_data1
DW_AT_decl_file DW_FORM_udata May be omitted
DW_AT_decl_line DW_FORM_udata May be omitted
DW_AT_decl_column DW_FORM_udata May be omitted
DW_AT_low_pc DW_FORM_addr
DW_AT_high_pc DW_FORM_addr
Member Function Definition (DW_TAG_subprogram)
--------------------------
Possible children: Variable
Lexical Block
DW_AT_specification DW_FORM_ref_addr Declaration (in class)
DW_AT_decl_file DW_FORM_udata May be omitted
DW_AT_decl_line DW_FORM_udata May be omitted
DW_AT_decl_column DW_FORM_udata May be omitted
DW_AT_low_pc DW_FORM_addr
DW_AT_high_pc DW_FORM_addr
Lexical Block (DW_TAG_lexical_block)
-------------
Possible children: Variable
Lexical Block
DW_AT_low_pc DW_FORM_addr
DW_AT_high_pc DW_FORM_addr
===============
3. Type Entries
===============
Unless the -ym format variant modifier is used, type information is
output once, in the first compilation unit, and then referred to using
address-type references (DW_AT_FORM_ref_addr). In XLINK versions prior
to XLINK 4.51S these references used offsets from the start of the
.debug_info section. In XLINK versions starting with 4.51S the
references use offsets from the start of the entire file, unless the
-ys format variant modifier is used, in which case section offsets are
used. See the note section for how to determine which was used.
If the -ym format variant modifier is uses, type information is
duplicated in each compilation unit, and referred to using compilation
unit relative references (DW_AT_FORM_ref_udata).
All DW_AT_data_member_location attributes use a single
DW_OP_plus_uconst operation to encode an offset from the start of the
containing object.
Basic Type (DW_TAG_base_type)
----------
The "void" type has a a byte size of 0 and a DW_ATE_signed encoding.
DW_AT_name DW_FORM_string
DW_AT_encoding DW_FORM_data1
DW_AT_byte_size DW_FORM_data1
Typedef (DW_TAG_typedef)
-------
DW_AT_type DW_FORM_ref_addr
DW_AT_name DW_FORM_string
Enum Type (DW_TAG_enumeration_type)
---------
Possible children: Enum Constant
DW_AT_name DW_FORM_string
DW_AT_byte_size DW_FORM_udata
Enum Constant (DW_TAG_enumerator)
-------------
DW_AT_name DW_FORM_string
DW_AT_const_value DW_FORM_udata
Pointer To Member Type (DW_TAG_ptr_to_member_type)
----------------------
DW_AT_type DW_FORM_ref_addr
DW_AT_containing_type DW_FORM_ref_addr
Function Type (DW_TAG_subroutine_type)
-------------
Possible children: Parameter
Varargs Parameter
DW_AT_type DW_FORM_ref_addr Not present for void functions
DW_AT_prototyped DW_FORM_data1
Parameter (DW_TAG_formal_parameter)
---------
DW_AT_type DW_FORM_ref_addr
Varargs Parameter (DW_TAG_unspecified_parameters)
-----------------
Pointer Type (DW_TAG_pointer_type)
------------
DW_AT_type DW_FORM_ref_addr
DW_AT_address_class DW_FORM_data1 If address_class is wanted
Reference Type (DW_TAG_reference_type)
--------------
DW_AT_type DW_FORM_ref_addr
DW_AT_address_class DW_FORM_data1 If address_class is wanted
Array Type (DW_TAG_array_type)
----------
Possible children: Array Index
DW_AT_type DW_FORM_ref_addr
DW_AT_byte_size DW_FORM_udata
Array Index (DW_TAG_subrange_type)
-----------
DW_AT_count DW_FORM_udata
Structure Type (DW_TAG_structure_type
-------------- DW_TAG_union_type
DW_TAG_class_type)
P
没有合适的资源?快使用搜索试试~ 我知道了~
CC2530 zigbee模块概述与环境搭建
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共180个文件
jpg:42个
png:36个
html:25个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
需积分: 0 1 下载量 180 浏览量
2024-05-15
19:36:45
上传
评论
收藏 122.33MB ZIP 举报
温馨提示
IAR离线工作包
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/DOC.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/EXE.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/EXE.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/EXE.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/EXE.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/EXE.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/HTML.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
共 180 条
- 1
- 2
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/cc3ffffaae374074b2045d94525e881a_2301_76809497.jpg!1)
Superman程序猿
- 粉丝: 65
- 资源: 5
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)