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
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 : 8K;
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(8);
[458]37 __idata_start = . ;
38 .data :
[453]39 {
40 __data_start = . ;
41 /* Writable data segment (.data segment) */
42 *(.data .data.*)
[458]43 *(.sdata .sdata.* .sdata2.*)
[453]44 . = ALIGN(8);
45 PROVIDE( __global_pointer$ = ABSOLUTE(.) + 0x800);
[458]46 }
47 .eh_frame : { KEEP (*(.eh_frame)) }
48 .gcc_except_table : { *(.gcc_except_table) }
[453]49 .ctors :
50 {
51 KEEP (*crtbegin.o(.ctors))
52 KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
53 KEEP (*(SORT(.ctors.*)))
54 KEEP (*(.ctors))
[458]55 }
[453]56 .dtors :
57 {
58 KEEP (*crtbegin.o(.dtors))
59 KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
60 KEEP (*(SORT(.dtors.*)))
61 KEEP (*(.dtors))
[458]62 }
63 __idata_end = __idata_start + SIZEOF(.data) ;
[453]64 _edata = . ;
65 PROVIDE (edata = .) ;
66 . = ALIGN(8) ;
67 __bss_start = . ;
68 .bss :
69 {
70 *(.bss .bss.*)
[458]71 *(.sbss .sbss.* .sbss2.*)
[453]72 *(COMMON)
[458]73 }
[453]74 _end = . ;
75 __bss_end = . ;
[458]76 .stack :
[453]77 {
78 *(.stack)
[458]79 }
[453]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.