Разработка, производство и продажа радиоэлектронной аппаратуры
|
Требуется программист в Зеленограде - обработка данных с датчиков; ColdFire; 40 тыс.
e-mail: jobsmp@pochta.ru
|
Вот кусок оттуда :
-------------------------------------------
http://sources.redhat.com/binutils/docs-2.12/ld.info/Simple-Example.html#Simple%20Example
-------------------------------------------
"Simple Linker Script Example"
-------------------------------------------
(сам хочу когда-нибудь разобраться :))
-------------------------------------------
The SECTIONS command is a powerful command. Here we will describe a simple use of it. Let's assume your program consists only of code, initialized data, and uninitialized data. These will be in the .text, .data, and .bss sections, respectively. Let's assume further that these are the only sections which appear in your input files.
For this example, let's say that the code should be loaded at address 0x10000, and that the data should start at address 0x8000000. Here is a linker script which will do that:
SECTIONS
{
. = 0x10000;
.text : { *(.text) }
. = 0x8000000;
.data : { *(.data) }
.bss : { *(.bss) }
}
Составить ответ | Вернуться на конференцию
Ответы