changes target extension to become .elf
This commit is contained in:
		
							
								
								
									
										71
									
								
								env/rtl/link.lds
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										71
									
								
								env/rtl/link.lds
									
									
									
									
										vendored
									
									
								
							| @@ -22,13 +22,18 @@ SECTIONS | ||||
|   .init ORIGIN(flash)        : | ||||
|   { | ||||
|     KEEP (*(SORT_NONE(.init))) | ||||
|     *crt0.o(.text .text.*) | ||||
|   } >flash AT>flash :flash | ||||
|  | ||||
|   .text           : | ||||
|   { | ||||
|     *(.text.unlikely .text.unlikely.*) | ||||
|     *(.text.init) | ||||
|     *(.text.unlikely .text.*_unlikely .text.unlikely.*) | ||||
|     *(.text.exit .text.exit.*) | ||||
|     *(.text.startup .text.startup.*) | ||||
|     *(.text.hot .text.hot.*) | ||||
|     *(.text .text.*) | ||||
|     *(.stub) | ||||
|     *(.gnu.linkonce.t.*) | ||||
|   } >flash AT>flash :flash | ||||
|  | ||||
| @@ -50,6 +55,13 @@ SECTIONS | ||||
|  | ||||
|   . = ALIGN(4); | ||||
|  | ||||
|   /* Thread Local Storage sections  */ | ||||
|   .tdata	  : | ||||
|    { | ||||
|      PROVIDE_HIDDEN (__tdata_start = .); | ||||
|      *(.tdata .tdata.* .gnu.linkonce.td.*) | ||||
|    } >flash AT>flash :flash | ||||
|   .tbss		  : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }  >flash AT>flash :flash | ||||
|   .preinit_array  : | ||||
|   { | ||||
|     PROVIDE_HIDDEN (__preinit_array_start = .); | ||||
| @@ -116,13 +128,6 @@ SECTIONS | ||||
|     PROVIDE( _data = . ); | ||||
|   } >ram AT>flash :ram_init | ||||
|  | ||||
|   .data          : | ||||
|   { | ||||
|     __DATA_BEGIN__ = .; | ||||
|     *(.data .data.*) | ||||
|     *(.gnu.linkonce.d.*) | ||||
|   } >ram AT>flash :ram_init | ||||
|  | ||||
|   .srodata        : | ||||
|   { | ||||
|     PROVIDE( _gp = . + 0x800 ); | ||||
| @@ -133,9 +138,11 @@ SECTIONS | ||||
|     *(.srodata .srodata.*) | ||||
|   } >ram AT>flash :ram_init | ||||
|  | ||||
|   .sdata          : | ||||
|   .data          : | ||||
|   { | ||||
|     __SDATA_BEGIN__ = .; | ||||
|     *(.data .data.*) | ||||
|     *(.gnu.linkonce.d.*) | ||||
|     PROVIDE( __global_pointer$ = . + 0x800 ); | ||||
|     *(.sdata .sdata.*) | ||||
|     *(.gnu.linkonce.s.*) | ||||
|   } >ram AT>flash :ram_init | ||||
| @@ -158,7 +165,6 @@ SECTIONS | ||||
|  | ||||
|   . = ALIGN(8); | ||||
|   __BSS_END__ = .; | ||||
|   __global_pointer$ = MIN(__SDATA_BEGIN__ + 0x800,  MAX(__DATA_BEGIN__ + 0x800, __BSS_END__ - 0x800)); | ||||
|   PROVIDE( _end = . ); | ||||
|   PROVIDE( end = . ); | ||||
|  | ||||
| @@ -171,4 +177,47 @@ SECTIONS | ||||
|  | ||||
|   PROVIDE( tohost = 0xfffffff0 ); | ||||
|   PROVIDE( fromhost = 0xfffffff8 ); | ||||
|  | ||||
|   /* Stabs debugging sections.  */ | ||||
|   .stab          0 : { *(.stab) } | ||||
|   .stabstr       0 : { *(.stabstr) } | ||||
|   .stab.excl     0 : { *(.stab.excl) } | ||||
|   .stab.exclstr  0 : { *(.stab.exclstr) } | ||||
|   .stab.index    0 : { *(.stab.index) } | ||||
|   .stab.indexstr 0 : { *(.stab.indexstr) } | ||||
|   .comment       0 : { *(.comment) } | ||||
|   .gnu.build.attributes : { *(.gnu.build.attributes .gnu.build.attributes.*) } | ||||
|   /* DWARF debug sections. | ||||
|      Symbols in the DWARF debugging sections are relative to the beginning | ||||
|      of the section so we begin them at 0.  */ | ||||
|   /* DWARF 1 */ | ||||
|   .debug          0 : { *(.debug) } | ||||
|   .line           0 : { *(.line) } | ||||
|   /* GNU DWARF 1 extensions */ | ||||
|   .debug_srcinfo  0 : { *(.debug_srcinfo) } | ||||
|   .debug_sfnames  0 : { *(.debug_sfnames) } | ||||
|   /* DWARF 1.1 and DWARF 2 */ | ||||
|   .debug_aranges  0 : { *(.debug_aranges) } | ||||
|   .debug_pubnames 0 : { *(.debug_pubnames) } | ||||
|   /* DWARF 2 */ | ||||
|   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) } | ||||
|   .debug_abbrev   0 : { *(.debug_abbrev) } | ||||
|   .debug_line     0 : { *(.debug_line .debug_line.* .debug_line_end) } | ||||
|   .debug_frame    0 : { *(.debug_frame) } | ||||
|   .debug_str      0 : { *(.debug_str) } | ||||
|   .debug_loc      0 : { *(.debug_loc) } | ||||
|   .debug_macinfo  0 : { *(.debug_macinfo) } | ||||
|   /* SGI/MIPS DWARF 2 extensions */ | ||||
|   .debug_weaknames 0 : { *(.debug_weaknames) } | ||||
|   .debug_funcnames 0 : { *(.debug_funcnames) } | ||||
|   .debug_typenames 0 : { *(.debug_typenames) } | ||||
|   .debug_varnames  0 : { *(.debug_varnames) } | ||||
|   /* DWARF 3 */ | ||||
|   .debug_pubtypes 0 : { *(.debug_pubtypes) } | ||||
|   .debug_ranges   0 : { *(.debug_ranges) } | ||||
|   /* DWARF Extension.  */ | ||||
|   .debug_macro    0 : { *(.debug_macro) } | ||||
|   .debug_addr     0 : { *(.debug_addr) } | ||||
|   .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) } | ||||
|   /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user