mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			67 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /*======================================================================*/
 | |
| /* Proxy kernel linker script                                           */
 | |
| /*======================================================================*/
 | |
| /* This is the linker script used when building the proxy kernel. */
 | |
| 
 | |
| /*----------------------------------------------------------------------*/
 | |
| /* Setup                                                                */
 | |
| /*----------------------------------------------------------------------*/
 | |
| 
 | |
| /* The OUTPUT_ARCH command specifies the machine architecture where the
 | |
|    argument is one of the names used in the BFD library. More
 | |
|    specifically one of the entires in bfd/cpu-mips.c */
 | |
| 
 | |
| OUTPUT_ARCH( "riscv" )
 | |
| ENTRY(_start)
 | |
| 
 | |
| /*----------------------------------------------------------------------*/
 | |
| /* Sections                                                             */
 | |
| /*----------------------------------------------------------------------*/
 | |
| 
 | |
| SECTIONS
 | |
| {
 | |
| 
 | |
|   /* text: test code section */
 | |
|   . = 0x80000000;
 | |
|   .text.init : { *(.text.init) }
 | |
| 
 | |
|   . = ALIGN(0x1000);
 | |
|   .tohost : { *(.tohost) }
 | |
| 
 | |
| /*  . = ALIGN(0x1000);
 | |
|   .text : { *(.text) } */
 | |
| 
 | |
|   /* data segment */
 | |
|   .data : { *(.data) }
 | |
| 
 | |
|   .sdata : {
 | |
|     __global_pointer$ = . + 0x800;
 | |
|     *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) *(.srodata*)
 | |
|     *(.sdata .sdata.* .gnu.linkonce.s.*)
 | |
|   }
 | |
| 
 | |
|   /* bss segment */
 | |
|   .sbss : {
 | |
|     *(.sbss .sbss.* .gnu.linkonce.sb.*)
 | |
|     *(.scommon)
 | |
|   }
 | |
|   .bss : { *(.bss) }
 | |
| 
 | |
|   /* thread-local data segment */
 | |
|   .tdata :
 | |
|   {
 | |
|     _tdata_begin = .;
 | |
|     *(.tdata)
 | |
|     _tdata_end = .;
 | |
|   }
 | |
|   .tbss :
 | |
|   {
 | |
|     *(.tbss)
 | |
|     _tbss_end = .;
 | |
|   }
 | |
| 
 | |
|   /* End of uninitalized data segement */
 | |
|   _end = .;
 | |
| }
 | |
| 
 |