Subversion Repositories HelenOS

Rev

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

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