summaryrefslogtreecommitdiff
path: root/src/user/link.ld
blob: 9ab693d5bd2a3a15b355e40f9480c5b86b94f998 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ENTRY (__tce_libc_start)
 
SECTIONS{
    . = 0x100000;
 
    .text : {
        *(.text)
    }
 
    .rodata ALIGN (0x1000)  :{
        *(.rodata)
    }
 
    .data ALIGN (0x1000) : {
		start_ctors = .;
		*(.ctor*)
		end_ctors = .;
		start_dtors = .;
		*(.dtor*)
		end_dtors = .;
        *(.data)
    }
 
    .bss : {
        sbss = .;
        *(COMMON)
        *(.bss)
        ebss = .;
    }
 
	end = .; _end = .; __end = .;
}