source: azure_iot_hub_riscv/trunk/asp_baseplatform/arch/riscv_gcc/riscv32elf.ld@ 458

Last change on this file since 458 was 458, checked in by coas-nagasima, 4 years ago

SPIとSerial、KPUの動作を改善

File size: 1.9 KB
RevLine 
[453]1/*
2 * @(#) $Id$
3 */
4
5OUTPUT_ARCH(riscv)
6
7PROVIDE(hardware_init_hook = 0);
8PROVIDE(software_init_hook = 0);
9PROVIDE(software_term_hook = 0);
10STARTUP(start.o)
11
12SECTIONS
13{
14 __stack_size = DEFINED(__stack_size) ? __stack_size : 2K;
15
16 .init :
17 {
18 KEEP (*(.init))
[458]19 }
[453]20 .text :
21 {
22 __text = . ;
23 *(.text .stub .text.* .gnu.linkonce.t.*)
24
[458]25 }
[453]26 .fini :
27 {
28 KEEP (*(.fini))
[458]29 }
[453]30 _etext = . ;
31 PROVIDE (etext = .) ;
32 .rodata :
33 {
34 *(.rodata .rodata.* .gnu.linkonce.r.*)
[458]35 }
[453]36 . = ALIGN(4) ;
[458]37 __idata_start = . ;
38 .data : AT(__idata_start)
[453]39 {
40 __data_start = . ;
41 *(.data .data.*)
[458]42 *(.sdata .sdata.* .sdata2.*)
[453]43 . = ALIGN(8);
[458]44 PROVIDE( __global_pointer$ = . + 0x800 );
45 }
46 .eh_frame : { KEEP (*(.eh_frame)) }
47 .gcc_except_table : { *(.gcc_except_table) }
[453]48 .ctors :
49 {
50 KEEP (*crtbegin.o(.ctors))
51 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
52 KEEP (*(SORT(.ctors.*)))
53 KEEP (*(.ctors))
[458]54 }
[453]55 .dtors :
56 {
57 KEEP (*crtbegin.o(.dtors))
58 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
59 KEEP (*(SORT(.dtors.*)))
60 KEEP (*(.dtors))
[458]61 }
62 __idata_end = __idata_start + SIZEOF(.data) ;
[453]63 _edata = . ;
64 PROVIDE (edata = .) ;
65 . = ALIGN(4) ;
66 __bss_start = . ;
67 .bss :
68 {
69 *(.bss .bss.*)
[458]70 *(.sbss .sbss.* .sbss2.*)
[453]71 *(COMMON)
[458]72 }
[453]73 _end = . ;
74 __bss_end = . ;
[458]75 .stack :
[453]76 {
77 *(.stack)
[458]78 }
[453]79 PROVIDE (end = .) ;
80 .comment 0 : { *(.comment) }
81 .debug 0 : { *(.debug) }
82 .line 0 : { *(.line) }
83 .debug_srcinfo 0 : { *(.debug_srcinfo) }
84 .debug_sfnames 0 : { *(.debug_sfnames) }
85 .debug_aranges 0 : { *(.debug_aranges) }
86 .debug_pubnames 0 : { *(.debug_pubnames) }
87}
Note: See TracBrowser for help on using the repository browser.