Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: gd32vf103xb.ld
===================================================================
--- gd32vf103xb.ld	(nonexistent)
+++ gd32vf103xb.ld	(revision 411)
@@ -0,0 +1,68 @@
+OUTPUT_ARCH( "riscv" )
+ENTRY( reset_handler )
+
+MEMORY
+{ 
+  FLASH (rx)  : ORIGIN = 0x08000000, LENGTH = 128K
+  RAM   (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
+}
+
+SECTIONS
+{
+  __stack_size = DEFINED(__stack_size) ? __stack_size : 1K;
+
+  .vector_table :
+  {
+    KEEP (*(SORT_NONE(.vector_table)))
+  } >FLASH
+
+  .text :
+  {
+    *(.rodata .rodata.*)
+    *(.srodata .srodata.*)
+    *(.text .text.*)
+  } >FLASH
+
+  . = ALIGN(4);
+
+  PROVIDE (__etext = .);
+  PROVIDE (_etext = .);
+  PROVIDE (etext = .);
+
+  _sidata = .;
+  .data : AT( _sidata )
+  {
+    _sdata = .;
+    *(.rdata) 
+    *(.data .data.*)
+    *(.sdata .sdata.*)
+    . = ALIGN(4);
+    _edata = .;
+  } >RAM
+
+  PROVIDE( _edata = . );
+  PROVIDE( edata = . );
+  PROVIDE( _fbss = . );
+  PROVIDE( __bss_start = . );
+
+  .bss :
+  {
+    _sbss = .;
+    *(.sbss*)
+    *(.bss .bss.*)
+    *(COMMON)
+    . = ALIGN(4);
+    _ebss = .;
+  } >RAM
+
+  . = ALIGN(8);
+  PROVIDE( _end = . );
+  PROVIDE( end = . );
+
+  .stack ORIGIN(RAM) + LENGTH(RAM) - __stack_size :
+  {
+    PROVIDE( _heap_end = . ); 
+    . = __stack_size;  
+    PROVIDE( _sp = . ); 
+  } >RAM
+}