Subversion Repositories HelenOS

Rev

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

Rev Author Line No. Line
2979 svoboda 1
ENTRY(__entry)
2
 
3
PHDRS {
4
        text PT_LOAD FLAGS(5);
5
	data PT_LOAD FLAGS(6);
3690 svoboda 6
	dynamic PT_DYNAMIC;
2979 svoboda 7
}
8
 
9
SECTIONS {
3567 svoboda 10
	. = 0x1000 + SIZEOF_HEADERS;
2979 svoboda 11
 
3567 svoboda 12
	.init : {
2979 svoboda 13
		*(.init);
14
	} :text
15
	.text : {
16
		*(.text);
17
		*(.text.*);
18
		*(.rodata*);
19
	} :text
20
 
3567 svoboda 21
	.rel.plt : {
2979 svoboda 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
 
3567 svoboda 32
	.plt : {
2979 svoboda 33
		*(.plt);
34
	} :text
35
 
3567 svoboda 36
	.dynsym : {
2979 svoboda 37
		*(.dynsym);
38
	} :text
39
 
3567 svoboda 40
	.dynstr : {
2979 svoboda 41
		*(.dynstr);
42
	} :text
43
 
3567 svoboda 44
	. = . + 0x1000;
45
 
3691 svoboda 46
	.dynamic : {
47
		*(.dynamic);
48
	} :data :dynamic
49
 
3567 svoboda 50
	.data : {
2979 svoboda 51
		*(.data);
52
	} :data
53
 
3567 svoboda 54
	.data.rel : {
2979 svoboda 55
                *(.data.rel);
56
	} :data
57
 
3567 svoboda 58
	.got : {
2979 svoboda 59
                *(.got);
60
	} :data
3567 svoboda 61
	.got.plt : {
2979 svoboda 62
                *(.got.plt);
63
	} :data
64
 
65
	.bss : {
66
                *(COMMON);
67
                *(.bss);
68
	} :data
69
 
70
	.tdata : {
71
		_tdata_start = .;
72
		*(.tdata);
73
		_tdata_end = .;
74
	} :data
75
	.tbss : {
76
		_tbss_start = .;
77
		*(.tbss);
78
		_tbss_end = .;
79
	} :data
80
	_tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
81
 
82
	. = ALIGN(0x1000);
83
	_heap = .;
84
}