Subversion Repositories HelenOS

Rev

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

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