source: azure_iot_hub_riscv/trunk/asp_baseplatform/arch/riscv_gcc/riscv64elf.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 : 8K;
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(8);
37 __idata_start = . ;
38 .data :
39 {
40 __data_start = . ;
41 /* Writable data segment (.data segment) */
42 *(.data .data.*)
43 *(.sdata .sdata.* .sdata2.*)
44 . = ALIGN(8);
45 PROVIDE( __global_pointer$ = ABSOLUTE(.) + 0x800);
46 }
47 .eh_frame : { KEEP (*(.eh_frame)) }
48 .gcc_except_table : { *(.gcc_except_table) }
49 .ctors :
50 {
51 KEEP (*crtbegin.o(.ctors))
52 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
53 KEEP (*(SORT(.ctors.*)))
54 KEEP (*(.ctors))
55 }
56 .dtors :
57 {
58 KEEP (*crtbegin.o(.dtors))
59 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
60 KEEP (*(SORT(.dtors.*)))
61 KEEP (*(.dtors))
62 }
63 __idata_end = __idata_start + SIZEOF(.data) ;
64 _edata = . ;
65 PROVIDE (edata = .) ;
66 . = ALIGN(8) ;
67 __bss_start = . ;
68 .bss :
69 {
70 *(.bss .bss.*)
71 *(.sbss .sbss.* .sbss2.*)
72 *(COMMON)
73 }
74 _end = . ;
75 __bss_end = . ;
76 .stack :
77 {
78 *(.stack)
79 }
80 PROVIDE (end = .) ;
81 .comment 0 : { *(.comment) }
82 .debug 0 : { *(.debug) }
83 .line 0 : { *(.line) }
84 .debug_srcinfo 0 : { *(.debug_srcinfo) }
85 .debug_sfnames 0 : { *(.debug_sfnames) }
86 .debug_aranges 0 : { *(.debug_aranges) }
87 .debug_pubnames 0 : { *(.debug_pubnames) }
88}
Note: See TracBrowser for help on using the repository browser.