Skip to content

Commit 6845030

Browse files
committed
Update linker script for SDK 1.1.0
Exception vectors have moved into .text.
1 parent 49aeb79 commit 6845030

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tools/sdk/ld/eagle.app.v6.common.ld

+29
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ PHDRS
1313

1414
/* Default entry point: */
1515
ENTRY(call_user_start)
16+
EXTERN(_DebugExceptionVector)
17+
EXTERN(_DoubleExceptionVector)
18+
EXTERN(_KernelExceptionVector)
19+
EXTERN(_NMIExceptionVector)
20+
EXTERN(_UserExceptionVector)
1621
PROVIDE(_memmap_vecbase_reset = 0x40000000);
1722
/* Various memory-map dependent cache attribute settings: */
1823
_memmap_cacheattr_wb_base = 0x00000110;
@@ -158,6 +163,30 @@ SECTIONS
158163
{
159164
_stext = .;
160165
_text_start = ABSOLUTE(.);
166+
*(.UserEnter.text)
167+
. = ALIGN(16);
168+
*(.DebugExceptionVector.text)
169+
. = ALIGN(16);
170+
*(.NMIExceptionVector.text)
171+
. = ALIGN(16);
172+
*(.KernelExceptionVector.text)
173+
LONG(0)
174+
LONG(0)
175+
LONG(0)
176+
LONG(0)
177+
. = ALIGN(16);
178+
*(.UserExceptionVector.text)
179+
LONG(0)
180+
LONG(0)
181+
LONG(0)
182+
LONG(0)
183+
. = ALIGN(16);
184+
*(.DoubleExceptionVector.text)
185+
LONG(0)
186+
LONG(0)
187+
LONG(0)
188+
LONG(0)
189+
. = ALIGN (16);
161190
*(.entry.text)
162191
*(.init.literal)
163192
*(.init)

0 commit comments

Comments
 (0)