aboutsummaryrefslogtreecommitdiff
path: root/ld/m88kbcs.sc-sh
blob: c7fe189611d66f2e2bee806f1cff1df6d6178dec (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
41
cat <<EOF
TARGET(m88kbcs)
OUTPUT_FORMAT(m88kbcs)
OUTPUT_ARCH(${arch})
ENTRY(__start)
${RELOCATING+${LIB_SEARCH_DIRS}}

SECTIONS 				
{ 					
  .text ${RELOCATING+ 0x10000 + SIZEOF_HEADERS} :
    {
      CREATE_OBJECT_SYMBOLS
      ${RELOCATING+ __.text.start = .};
      ${RELOCATING+ __.init.start = .};
      ${RELOCATING+ LONG(0xf400c001)}
      ${RELOCATING+ __.init.end = .};
      *(.text) 				
      ${RELOCATING+ __.tdesc_start = .};
      ${RELOCATING+ *(.tdesc)}
      ${RELOCATING+ __.text_end = .}	;
      ${RELOCATING+ __.initp.start = .};
      ${RELOCATING+ __.initp.end =.};

      ${RELOCATING+_etext =.};
    }  					
  .data ${RELOCATING+ SIZEOF(.text) + ADDR(.text) + 0x400000} :
    { 					
      *(.data)
      ${CONSTRUCTING+CONSTRUCTORS}
      *(.comment)
      ${RELOCATING+_edata  =  .};
    }  					
  .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
    { 		
      *(.bss)	
      *(COMMON) 	
      ${RELOCATING+ _end = .};
      ${RELOCATING+ __end = .};
    } 					
}
EOF