Subversion Repositories HelenOS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3772 svoboda 1
ENTRY(__entry)
2
 
3
PHDRS {
4
	text PT_LOAD FLAGS(5);
5
	data PT_LOAD FLAGS(6);
6
	dynamic PT_DYNAMIC;
7
}
8
 
9
SECTIONS {
10
	. = 0x4000 + SIZEOF_HEADERS;
11
 
12
	.init : {
13
		*(.init);
14
	} :text
15
	.text : {
16
	        *(.text);
17
		*(.rodata*);
18
		*(.MIPS.stubs);
19
	} :text
20
 
21
	.hash : {
22
		*(.hash);
23
	} : text
24
 
25
	.reginfo : {
26
		*(.reginfo);
27
	} : text
28
 
29
	.rel.plt : {
30
		*(.rel.plt);
31
	} : text
32
	/* 
33
	 *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt 
34
	 * without alignment gap or DT_REL will be broken
35
	 */
36
	.rel.dyn : {
37
		*(.rel.*);
38
	} :text
39
 
40
	.plt : {
41
		*(.plt);
42
	} : text
43
 
44
	.dynsym : {
45
		*(.dynsym);
46
	} : text
47
 
48
	.dynstr : {
49
		*(.dynstr);
50
	} : text
51
 
52
	. = . + 0x4000;
53
 
54
	.dynamic : {
55
		*(.dynamic);
56
	} :data :dynamic
57
 
58
	.data : {
59
		*(.data);
60
		*(.data.rel*);
61
	} :data
62
 
63
	.got : {
64
		_gp = .;
65
		*(.got);
66
	} :data
67
 
68
	.tdata : {
69
		_tdata_start = .;
70
		*(.tdata);
71
		_tdata_end = .;
72
	} :data
73
	.tbss : {
74
		_tbss_start = .;
75
		*(.tbss);
76
		_tbss_end = .;
77
	} :data
78
	_tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
79
 
80
	.sbss : {
81
		*(.scommon);
82
		*(.sbss);
83
	}	
84
	.bss : {
85
		*(.bss);
86
		*(COMMON);
87
	} :data
88
 
89
	. = ALIGN(0x4000);
90
	_heap = .;
91
 
92
/*	/DISCARD/ : {
93
		*(*);
94
	}*/
95
}