summaryrefslogtreecommitdiff
path: root/esp8266/esp8266.ld
diff options
context:
space:
mode:
Diffstat (limited to 'esp8266/esp8266.ld')
-rw-r--r--esp8266/esp8266.ld29
1 files changed, 29 insertions, 0 deletions
diff --git a/esp8266/esp8266.ld b/esp8266/esp8266.ld
index 998129156..25cb4e8be 100644
--- a/esp8266/esp8266.ld
+++ b/esp8266/esp8266.ld
@@ -21,6 +21,11 @@ PHDRS
}
ENTRY(call_user_start)
+EXTERN(_DebugExceptionVector)
+EXTERN(_DoubleExceptionVector)
+EXTERN(_KernelExceptionVector)
+EXTERN(_NMIExceptionVector)
+EXTERN(_UserExceptionVector)
PROVIDE(_memmap_vecbase_reset = 0x40000000);
@@ -101,6 +106,30 @@ SECTIONS
{
_stext = .;
_text_start = ABSOLUTE(.);
+ *(.UserEnter.text)
+ . = ALIGN(16);
+ *(.DebugExceptionVector.text)
+ . = ALIGN(16);
+ *(.NMIExceptionVector.text)
+ . = ALIGN(16);
+ *(.KernelExceptionVector.text)
+ LONG(0)
+ LONG(0)
+ LONG(0)
+ LONG(0)
+ . = ALIGN(16);
+ *(.UserExceptionVector.text)
+ LONG(0)
+ LONG(0)
+ LONG(0)
+ LONG(0)
+ . = ALIGN(16);
+ *(.DoubleExceptionVector.text)
+ LONG(0)
+ LONG(0)
+ LONG(0)
+ LONG(0)
+ . = ALIGN (16);
*(.entry.text)
*(.init.literal)
*(.init)