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
Line 
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))
19 }
20 .text :
21 {
22 __text = . ;
23 *(.text .stub .text.* .gnu.linkonce.t.*)
24
25 }
26 .fini :
27 {
28 KEEP (*(.fini))
29 }
30 _etext = . ;
31 PROVIDE (etext = .) ;
32 .rodata :
33 {
34 *(.rodata .rodata.* .gnu.linkonce.r.*)
35 }
36 . = ALIGN(4) ;
37 __idata_start = . ;
38 .data : AT(__idata_start)
39 {
40 __data_start = . ;
41 *(.data .data.*)
42 *(.sdata .sdata.* .sdata2.*)
43 . = ALIGN(8);
44 PROVIDE( __global_pointer$ = . + 0x800 );
45 }
46 .eh_frame : { KEEP (*(.eh_frame)) }
47 .gcc_except_table : { *(.gcc_except_table) }
48 .ctors :
49 {
50 KEEP (*crtbegin.o(.ctors))
51 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
52 KEEP (*(SORT(.ctors.*)))
53 KEEP (*(.ctors))
54 }
55 .dtors :
56 {
57 KEEP (*crtbegin.o(.dtors))
58 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
59 KEEP (*(SORT(.dtors.*)))
60 KEEP (*(.dtors))
61 }
62 __idata_end = __idata_start + SIZEOF(.data) ;
63 _edata = . ;
64 PROVIDE (edata = .) ;
65 . = ALIGN(4) ;
66 __bss_start = . ;
67 .bss :
68 {
69 *(.bss .bss.*)
70 *(.sbss .sbss.* .sbss2.*)
71 *(COMMON)
72 }
73 _end = . ;
74 __bss_end = . ;
75 .stack :
76 {
77 *(.stack)
78 }
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.