How to put a lib in specifiled postion (gcc arm)?
I want to put a (staitc )lib in specifiled postion (gcc arm).
but i don't know how to do it .
the lib is libxx.a, it should be puted at 0x00000400 addr.
is there anyone do like this before ?
I try it like follow,but failled .
/* Specify the memory areas */
MEMORY
{
FLASH_BOOT (rx) : ORIGIN = 0x00000000, LENGTH = 1K
FLASH_LIB (rx) : ORIGIN = 0x00000400, LENGTH = 3K
FLASH (rx) : ORIGIN = 0x00001000, LENGTH = 124K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
}
/* Define output sections */
SECTIONS
{
...
lib :
{
libxx.a (.text, .rodata)
} > FLASH_LIB
.text :
{
*(.text*)
*(.rodata*)
} 〉FLASH
...
}
I know that lib is located at FLASH section from the map file.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- 孙华
- Solved:
- Last query:
- Last reply: