Subversion Repositories HelenOS

Rev

Rev 3386 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4153 mejdrech 1
/*
3222 svoboda 2
 * The only difference from _link.ld.in for regular statically-linked apps
3
 * is the base address.
4
 */
4153 mejdrech 5
STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
3222 svoboda 6
ENTRY(__entry)
7
 
8
PHDRS {
9
	interp PT_INTERP;
10
	text PT_LOAD FLAGS(5);
11
	data PT_LOAD FLAGS(6);
12
}
13
 
14
SECTIONS {
15
	.interp : {
16
		*(.interp);
17
	} :interp
18
 
19
	. = 0x70004000;
20
 
21
	.init ALIGN(0x4000) : SUBALIGN(0x4000) {
22
		*(.init);
23
	} :text
24
	.text : {
25
	        *(.text);
26
		*(.rodata*);
27
	} :text
28
 
29
	.data : {
30
		*(.data);
31
		*(.data.rel*);
32
	} :data
33
 
34
	.got : {
35
		_gp = .;
36
		*(.got);
37
	} :data
38
 
39
	.tdata : {
40
		_tdata_start = .;
41
		*(.tdata);
42
		_tdata_end = .;
43
	} :data
44
	.tbss : {
45
		_tbss_start = .;
46
		*(.tbss);
47
		_tbss_end = .;
48
	} :data
49
	_tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
50
 
51
	.sbss : {
52
		*(.scommon);
53
		*(.sbss);
54
	}	
55
	.bss : {
56
		*(.bss);
57
		*(COMMON);
58
	} :data
59
 
60
	. = ALIGN(0x4000);
61
	_heap = .;
62
 
63
	/DISCARD/ : {
64
		*(*);
65
	}
66
}