Browse Source

[BSP] fix ls1b compiling issue

Bernard Xiong 10 years ago
parent
commit
fd69283f3a
2 changed files with 9 additions and 5 deletions
  1. 7 0
      bsp/ls1bdev/ls1b_ram.lds
  2. 2 5
      bsp/ls1bdev/rtconfig.h

+ 7 - 0
bsp/ls1bdev/ls1b_ram.lds

@@ -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 : 

+ 2 - 5
bsp/ls1bdev/rtconfig.h

@@ -93,13 +93,10 @@
 #define FINSH_THREAD_STACK_SIZE	4096
 // </section>
 
+// <section name="RT_USING_LIBC" description="C Runtime library setting" default="true" >
 #define RT_USING_LIBC
-
-// <section name="LIBC" description="C Runtime library setting" default="always" >
-// <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" />
-// #define RT_USING_PTHREADS
+#define RT_USING_PTHREADS
 // </section>
 
 // <section name="RT_USING_DFS" description="Device file system" default="true" >