Subversion Repositories HelenOS

Rev

Rev 2987 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2987 Rev 3004
Line 1... Line 1...
1
/* 
1
/* 
2
 * The only difference from _link.ld.in for regular statically-linked apps
2
 * The difference from _link.ld.in for regular statically-linked apps
3
 * is the base address.
3
 * is the base address and the special interp section.
4
 */
4
 */
5
STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
5
STARTUP(LIBC_PREFIX/arch/ARCH/src/entry.o)
6
ENTRY(__entry)
6
ENTRY(__entry)
7
 
7
 
8
PHDRS {
8
PHDRS {
-
 
9
	interp PT_INTERP;
9
        text PT_LOAD FLAGS(5);
10
        text PT_LOAD FILEHDR PHDRS FLAGS(5);
10
	data PT_LOAD FLAGS(6);
11
	data PT_LOAD FLAGS(6);
11
}
12
}
12
 
13
 
13
SECTIONS {
14
SECTIONS {
-
 
15
	.interp : {
-
 
16
		*(.interp);
-
 
17
	} : interp
-
 
18
 
14
	. = 0x70001000;
19
	. = 0x70001000;
15
 
20
 
16
	.init ALIGN(0x1000) : SUBALIGN(0x1000) {
21
	.init ALIGN(0x1000) : SUBALIGN(0x1000) {
17
		*(.init);
22
		*(.init);
18
	} :text
23
	} :text