riscv: linker: fix duplicate symbol when CONFIG_USERSPACE=y
_image_ram_start symbol is duplicate in CONFIG_USERSPACE. This symbol should be at the start of app_smem in userspace, so remove another symbol in CONFIG_USERSPACE. Signed-off-by: Jim Shu <cwshu@andestech.com>
This commit is contained in:
parent
96048bdf65
commit
3f16fdefbf
1 changed files with 3 additions and 1 deletions
|
@ -228,7 +228,9 @@ SECTIONS
|
||||||
*/
|
*/
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__bss_start = .;
|
__bss_start = .;
|
||||||
|
#if !defined(CONFIG_USERSPACE)
|
||||||
_image_ram_start = .;
|
_image_ram_start = .;
|
||||||
|
#endif /* CONFIG_USERSPACE */
|
||||||
__kernel_ram_start = .;
|
__kernel_ram_start = .;
|
||||||
*(.sbss)
|
*(.sbss)
|
||||||
*(".sbss.*")
|
*(".sbss.*")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue