summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorpangwei <[email protected]>2015-08-06 16:12:37 +0800
committerpangwei <[email protected]>2015-08-06 16:12:37 +0800
commit330ab2ca0d4291a9d59eeff200b179ba7283e741 (patch)
tree349df12cacb3f600ec54e6306409c6f8e3836aa2 /bsp
parent5ccbf073ccc0bac937bd1f4ff63b689a362b372c (diff)
[BSP]fix lslc compiling issue when using RT_USING_LIBC.
Diffstat (limited to 'bsp')
-rw-r--r--bsp/ls1cdev/ls1c_ram.lds9
-rw-r--r--bsp/ls1cdev/rtconfig.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/bsp/ls1cdev/ls1c_ram.lds b/bsp/ls1cdev/ls1c_ram.lds
index 95fb2496f8..a941b0d52b 100644
--- a/bsp/ls1cdev/ls1c_ram.lds
+++ b/bsp/ls1cdev/ls1c_ram.lds
@@ -1,5 +1,5 @@
/*
- * File : ls1b_ram.lds
+ * File : ls1c_ram.lds
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2011, RT-Thread Development Team
*
@@ -53,6 +53,13 @@ SECTIONS
__rt_init_end = .;
. = ALIGN(4);
}
+
+ .eh_frame_hdr :
+ {
+ *(.eh_frame_hdr)
+ *(.eh_frame_entry)
+ }
+ .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
. = ALIGN(4);
.data :
diff --git a/bsp/ls1cdev/rtconfig.h b/bsp/ls1cdev/rtconfig.h
index e6d0319e6a..6c021a44dc 100644
--- a/bsp/ls1cdev/rtconfig.h
+++ b/bsp/ls1cdev/rtconfig.h
@@ -93,7 +93,9 @@
#define FINSH_THREAD_STACK_SIZE 4096
// </section>
+
// <section name="LIBC" description="C Runtime library setting" default="always" >
+#define RT_USING_LIBC
// <bool name="RT_USING_NEWLIB" description="Using newlib library, only available under GNU GCC" default="true" />
// #define RT_USING_NEWLIB
// <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />