aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorTimothy Wall <twall@alum.mit.edu>2000-06-20 13:29:07 +0000
committerTimothy Wall <twall@alum.mit.edu>2000-06-20 13:29:07 +0000
commit74459f0e3ead9efad8aa29f2545b53e9c5f9988d (patch)
treecc6e8a64001a4a530b620ca7a1f906cabab653a9 /ld/scripttempl
parent2ab47eed68c82a9a6d055ba3f49ca6a8a1dd2575 (diff)
downloadgdb-74459f0e3ead9efad8aa29f2545b53e9c5f9988d.zip
gdb-74459f0e3ead9efad8aa29f2545b53e9c5f9988d.tar.gz
gdb-74459f0e3ead9efad8aa29f2545b53e9c5f9988d.tar.bz2
tic54x/ibmc54xdsp target for ld.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/tic54xcoff.sc52
1 files changed, 52 insertions, 0 deletions
diff --git a/ld/scripttempl/tic54xcoff.sc b/ld/scripttempl/tic54xcoff.sc
new file mode 100644
index 0000000..d84f928
--- /dev/null
+++ b/ld/scripttempl/tic54xcoff.sc
@@ -0,0 +1,52 @@
+# default linker script for c54x, TI COFF(1).
+# patterned after description in TI Aseembler Tools PDF, SPRU102C, 7-53
+test -z "$ENTRY" && ENTRY=_c_int00
+
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+OUTPUT_ARCH("${OUTPUT_ARCH}")
+
+MEMORY
+{
+ PAGE 0 : prog (RXI) : ORIGIN = 0x000080, LENGTH = 0xFF00
+ PAGE 1 : data (W) : ORIGIN = 0x000080, LENGTH = 0xFF80
+}
+
+ENTRY(${ENTRY})
+
+SECTIONS
+{
+ .text :
+ {
+ ___text__ = .;
+ *(.text)
+ etext = .;
+ ___etext__ = .;
+ } > prog
+ .data :
+ {
+ ___data__ = .;
+ __data = .;
+ *(.data)
+ __edata = .;
+ edata = .;
+ ___edata__ = .;
+ } > prog
+ /* all other initialized sections should be allocated here */
+ .cinit :
+ {
+ *(.cinit)
+ } > prog
+ .bss :
+ {
+ ___bss__ = .;
+ __bss = .;
+ *(.bss)
+ *(COMMON)
+ __ebss = .;
+ end = .;
+ ___end__ = .;
+ } > data
+ /* all other uninitialized sections should be allocated here */
+}
+EOF