From df74a617f11039c7ba1e3d1ff9a5041eb10fea0f Mon Sep 17 00:00:00 2001 From: yangjie11 Date: Fri, 31 Mar 2023 17:26:04 +0800 Subject: [PATCH] fix #6594 --- bsp/at91/at91sam9260/link_scripts/at91sam9260_ram.ld | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bsp/at91/at91sam9260/link_scripts/at91sam9260_ram.ld b/bsp/at91/at91sam9260/link_scripts/at91sam9260_ram.ld index 9e4397a69a..88dc5998fc 100644 --- a/bsp/at91/at91sam9260/link_scripts/at91sam9260_ram.ld +++ b/bsp/at91/at91sam9260/link_scripts/at91sam9260_ram.ld @@ -6,12 +6,13 @@ SECTIONS . = 0x20000000; . = ALIGN(4); - .text : + .text : { *(.init) + *(.vectors) *(.text) *(.gnu.linkonce.t*) - + /* section information for finsh shell */ . = ALIGN(4); __fsymtab_start = .; @@ -21,7 +22,7 @@ SECTIONS __vsymtab_start = .; KEEP(*(VSymTab)) __vsymtab_end = .; - . = ALIGN(4); + . = ALIGN(4); . = ALIGN(4); __rt_init_start = .; @@ -74,11 +75,13 @@ SECTIONS . = ALIGN(4); .nobss : { *(.nobss) } - + . = ALIGN(4); __bss_start__ = .; + __bss_start = .; .bss : { *(.bss)} __bss_end__ = .; + __bss_end = .; /* stabs debugging sections. */ .stab 0 : { *(.stab) }