-y support
[platform/upstream/binutils.git] / ld / ldm88k.sc
1 TARGET(m88kbcs)
2 OUTPUT_FORMAT(m88kbcs)
3 OUTPUT_ARCH(m88k)
4 ENTRY(__start)
5 SEARCH_DIR(/lib)                        
6 SEARCH_DIR(/usr/lib)                    
7 SEARCH_DIR(/usr/local/lib)              
8 SECTIONS                                
9 {                                       
10   .text 0x10000 + SIZEOF_HEADERS :
11     {
12       CREATE_OBJECT_SYMBOLS
13       /* If relocating */
14       __.text.start = .;
15       __.init.start = .;
16       LONG(0xf400c001) 
17       __.init.end = .;
18      /* End if relocating */
19       *(.text)                          
20       /* If relocating */
21       __.tdesc_start = .;
22       *(.tdesc)                         
23       __.text_end = .;  
24       __.initp.start = .;
25       __.initp.end =.;
26
27       _etext =.;
28      /* End if relocating */
29     }                                   
30   .data SIZEOF(.text) + ADDR(.text) + 0x400000:
31     {                                   
32       *(.data)
33         __CTOR_LIST__ = .;
34         *(CTOR)
35         LONG(0);
36         __DTOR_LIST__ = . ;
37         *(DTOR)
38         LONG(0);
39         *(.comment)
40       _edata  =  .;                     
41     }                                   
42   .bss   SIZEOF(.data) + ADDR(.data) :  
43     {           
44       *(.bss)   
45       *(COMMON)         
46       _end = .;                         
47       ___end = .;
48     }                                   
49 }
50
51
52