Reputation: 75
I am newbie to linker script. In my design, RISCV has the code space and data space seperately. The code address is 0~0xFFFF, the data address is 0~0xFFFFFF. Here is my linker scprit:
MEMORY
{
CODE (rx) : ORIGIN = 0x0000, LENGTH = 0x10000
DATA (rwx) : ORIGIN = 0x000000, LENGTH = 0x1000000
}
SECTIONS
{
.text :
{
/* Code section */
*(.text)
} > CODE
.data :
{
/* Data section */
*(.data)
*(.bss)
} > DATA
}
I got a address conflict issue:section .data LMA [0000000000000000, 0000000000000047] overlpas section .text LMA [0000000000000000, 0000000000001AFF]. So how should I configure a linker script、 thanks
Upvotes: 3
Views: 323