aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgldm88kbcs.sc
blob: c4cb37ee1dba28ca9e2f5c21a798061c1d9a673d (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
37
38
39
40
TARGET(m88kbcs)
OUTPUT_FORMAT(m88kbcs)
OUTPUT_ARCH(m88k)
ENTRY(__start)
SEARCH_DIR(/lib) 			
SEARCH_DIR(/usr/lib) 			
SEARCH_DIR(/usr/local/lib) 		
SECTIONS 				
{ 					
  .text 0x10000 + SIZEOF_HEADERS :
    { 					
      __.text.start = .;
      __.init.start = .;
      LONG(0xf400c001) 
      __.init.end = .;
      *(.text) 				
      __.tdesc_start = .;
      *(.tdesc) 			
      __.text_end = .;	
      __.initp.start = .;
      __.initp.end =.;

      _etext =.;
    }  					
  .data SIZEOF(.text) + ADDR(.text) + 0x400000:
    { 					
      *(.data) 				
	_edata  =  .; 			
    }  					
  .bss   SIZEOF(.data) + ADDR(.data) :	
    { 		
      *(.bss)	
      [COMMON] 	
      _end = .;				
      ___end = .;
    } 					
}