Subversion Repositories HelenOS

Rev

Rev 3555 | Rev 3590 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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