Subversion Repositories HelenOS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3691 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
	. = 0x1000 + SIZEOF_HEADERS;
11
 
12
	.init : {
13
		*(.init);
14
	} :text
15
	.text : {
16
		*(.text);
17
		*(.text.*);
18
		*(.rodata*);
19
	} :text
20
 
21
	.rel.plt : {
22
		*(.rel.plt);
23
	}
24
	/* 
25
	 *.rel.dyn MUST FOLLOW IMMEDIATELY after .rel.plt 
26
	 * without alignment gap or DT_REL will be broken
27
	 */
28
	.rel.dyn : {
29
		*(.rel.*);
30
	} :text
31
 
32
	.dynsym : {
33
		*(.dynsym);
34
	} :text
35
 
36
	.dynstr : {
37
		*(.dynstr);
38
	} :text
39
 
40
	. = . + 0x1000;
41
 
42
	.dynamic : {
43
		*(.dynamic);
44
	} :data :dynamic
45
 
46
	.data : {
47
		*(.data);
48
		*(.sdata);
49
	} :data
50
 
51
	.data.rel : {
52
                *(.data.rel);
53
	} :data
54
 
55
	.got : {
56
                *(.got);
57
	} :data
58
	.got.plt : {
59
                *(.got.plt);
60
	} :data
61
/*
62
	.tdata : {
63
		_tdata_start = .;
64
		*(.tdata);
65
		_tdata_end = .;
66
	} :data
67
	.tbss : {
68
		_tbss_start = .;
69
		*(.tbss);
70
		_tbss_end = .;
71
	} :data
72
	_tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
73
	.bss : {
74
		*(.sbss);
75
		*(COMMON);
76
		*(.bss);
77
	} :data
78
*/
79
	.plt : {
80
		*(.plt);
81
	} :data
82
 
83
	. = ALIGN(0x1000);
84
	_heap = .;
85
}