source: branches/libc-0.6/src/binutils/ld/scripttempl/tic30aout.sc

Last change on this file was 10, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 653 bytes
Line 
1cat <<EOF
2OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3OUTPUT_ARCH(${ARCH})
4
5${STACKZERO+${RELOCATING+${STACKZERO}}}
6${RELOCATING+PROVIDE (__stack = 0);}
7SECTIONS
8{
9 ${RELOCATING+. = ${TEXT_START_ADDR};}
10 .text :
11 {
12 CREATE_OBJECT_SYMBOLS
13 *(.text)
14 ${RELOCATING+_etext = .;}
15 ${RELOCATING+__etext = .;}
16 ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}}
17 }
18 ${RELOCATING+. = ${DATA_ALIGNMENT};}
19 .data :
20 {
21 *(.data)
22 ${RELOCATING+_edata = .;}
23 ${RELOCATING+__edata = .;}
24 }
25 .bss :
26 {
27 ${RELOCATING+ __bss_start = .};
28 *(.bss)
29 *(COMMON)
30 ${RELOCATING+_end = ALIGN(4) };
31 ${RELOCATING+__end = ALIGN(4) };
32 }
33}
34EOF
Note: See TracBrowser for help on using the repository browser.