|
Last change
on this file since 2784 was 10, checked in by bird, 23 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:
885 bytes
|
| Line | |
|---|
| 1 | # default linker script for c54x, TI COFF(1).
|
|---|
| 2 | # patterned after description in TI Assembler Tools PDF, SPRU102C, 7-53
|
|---|
| 3 | test -z "$ENTRY" && ENTRY=_c_int00
|
|---|
| 4 |
|
|---|
| 5 | cat <<EOF
|
|---|
| 6 | OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|---|
| 7 | OUTPUT_ARCH("${OUTPUT_ARCH}")
|
|---|
| 8 |
|
|---|
| 9 | MEMORY
|
|---|
| 10 | {
|
|---|
| 11 | /*PAGE 0 : */ prog (RXI) : ORIGIN = 0x00000080, LENGTH = 0xFF00
|
|---|
| 12 | /*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | ENTRY(${ENTRY})
|
|---|
| 16 |
|
|---|
| 17 | SECTIONS
|
|---|
| 18 | {
|
|---|
| 19 | .text :
|
|---|
| 20 | {
|
|---|
| 21 | ___text__ = .;
|
|---|
| 22 | *(.text)
|
|---|
| 23 | etext = .;
|
|---|
| 24 | ___etext__ = .;
|
|---|
| 25 | } > prog
|
|---|
| 26 | .data :
|
|---|
| 27 | {
|
|---|
| 28 | ___data__ = .;
|
|---|
| 29 | __data = .;
|
|---|
| 30 | *(.data)
|
|---|
| 31 | __edata = .;
|
|---|
| 32 | edata = .;
|
|---|
| 33 | ___edata__ = .;
|
|---|
| 34 | } > prog
|
|---|
| 35 | /* all other initialized sections should be allocated here */
|
|---|
| 36 | .cinit :
|
|---|
| 37 | {
|
|---|
| 38 | *(.cinit)
|
|---|
| 39 | } > prog
|
|---|
| 40 | .bss :
|
|---|
| 41 | {
|
|---|
| 42 | ___bss__ = .;
|
|---|
| 43 | __bss = .;
|
|---|
| 44 | *(.bss)
|
|---|
| 45 | *(COMMON)
|
|---|
| 46 | __ebss = .;
|
|---|
| 47 | end = .;
|
|---|
| 48 | ___end__ = .;
|
|---|
| 49 | } > data
|
|---|
| 50 | /* all other uninitialized sections should be allocated here */
|
|---|
| 51 | }
|
|---|
| 52 | EOF
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.