Extended Section:. attributes in DOJ

Source: Internet
Author: User

 

Happy shrimp

Http://blog.csdn.net/lights_joy/

Lights@hb165.com

 

 

This article applies

Bfinutils-2.19

Vs2008

Visual DSP +++ 5.0

 

Reprinted, but keep the author information

 

The DOJ file in vdsp adopts the ELF format, but some extensions are made. attributes is an additional section, and its section head can be set to the following values:

 

Table 0 Attribute Value Additional instructions
Sh_name 17 Section name, index in string TBL
Sh_type Strtab Type of Section
Sh_flags Zero X 00000000 Miscellaneous section attributes
Sh_addr Zero X 00000000 Section virtual ADDR at Execution
Sh_offset 24173 Section file offset
Sh_size 248 Size of section in bytes
Sh_link 0 Index of another section
Sh_info Zero X 00000000 Additional section information
Sh_addralign 0 Section alignment
Sh_entsize 0 Entry size if section holds table

Its sh_type value is strtab, that is, this segment stores only the string list. Press strtab to expand its content:

Table 0 Start position String Value
1 0
2 1 Projectname common
3 20 Projectname common
4 39 Funcname _ env_get_addr
5 62 Funcname _ env_get_char_memory
6 92 Funcname _ env_crc_update
7 117 Funcname _ env_get_char_init
8 145 Funcname _ env_relocate
9 168 Funcname _ env_complete
10 191 Content codedata
11 208 Si-revision 0.3
12 224 Processor-ID ADSP-BF561

 

Obviously, each row defines an attribute and separates the attribute names and values with/T. In this way, the content in the Table above can be interpreted:

 

Table 0 Attribute name Attribute Value
1 Projectname Common
2 Projectname Common
3 Funcname _ Env_get_addr
4 Funcname _ Env_get_char_memory
5 Funcname _ Env_crc_update
6 Funcname _ Env_get_char_init
7 Funcname _ Env_relocate
8 Funcname _ Env_complete
9 Content Codedata
10 Si-Revision 0.3
11 Processor-ID ADSP-BF561

 

 

References

BFD support for multiple targets( )

BFD support for elf32 format( 2008-11-7 )

Differences between objdump and readelf( 2008-11-10 )

Objdump code analysis( 2008-11-10 )

BFD file format Recognition( 2008-11-10 )

Backend Data Representation of BFD( 2008-11-10 )

Memory leakage in BFD( 2008-11-13 )

Processing ELF file headers using BFD( 2008-11-27 )

Add a target for processing vdsp files in BFD.( 2008-11-27 )

Extended Section:. CommandLine in DOJ( 2008-11-28 )

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.