2006-06-27

What are linker script files?

From:What are linker script files?

Date 7/5/2005 10:42:22 AM
Question What are linker script files?
Answer


Linker script:
In the Embed system development, it needs to use linker position file. This file describes the relevant information of code linker position, including code section, data section, address section, and the linker shall use the code of this file to the whole system as correct position. This file is called as linker scripts file.
The following is an example of Linker script:

SECTIONS
{
. = 0x02000000;
.text : { *(.text) }
Image_RO_Limit = .;
Image_RW_Base = .;
.data : { *(.data) }
.rodata : { *(.rodata) }
Image_ZI_Base = .;
.bss : { *(.bss) }
Image_ZI_Limit = .;
__bss_start__ = .;
__bss_end__ = .;
end = .;
.debug_info 0 : { *(.debug_info) }
.debug_line 0 : { *(.debug_line) }
.debug_abbrev 0 : { *(.debug_abbrev)}
.debug_frame 0 : { *(.debug_frame) }
}

沒有留言: