aboutsummaryrefslogtreecommitdiff
path: root/ld/scripts/isc-sysv3.2.sc
blob: db5f1bce2521e4f4d86ffcdf05ad04805bade9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* 
Script by mohring@informatik.tu-muenchen.de
for ISC SYSV 3.2/386 
*/
TARGET("coff-i386")
OUTPUT_FORMAT("coff-i386")
OUTPUT_ARCH(i386)
SEARCH_DIR(/lib)
SEARCH_DIR(/usr/lib)
SEARCH_DIR(/usr/local/lib)
SEARCH_DIR(/usr2/lib)
ENTRY(_start)

SECTIONS {
	.text SIZEOF_HEADERS :
		{
		CREATE_OBJECT_SYMBOLS
		*(.init);
		*(.text);
		*(.fini);
		etext = . ;
		}

	.data NEXT(0x400000) + (SIZEOF(.text) + ADDR(.text)) % 0x2000:
		{
		*(.data);
		edata = . ;
		}

  	.bss SIZEOF(.data) + ADDR(.data) :
		{ 
		*(.bss);
		[COMMON]
		end = . ;
		}
}