summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/ods68302/startup/linkcmds
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/m68k/ods68302/startup/linkcmds')
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/startup/linkcmds55
1 files changed, 55 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/m68k/ods68302/startup/linkcmds b/c/src/lib/libbsp/m68k/ods68302/startup/linkcmds
new file mode 100644
index 0000000000..225cc92f26
--- /dev/null
+++ b/c/src/lib/libbsp/m68k/ods68302/startup/linkcmds
@@ -0,0 +1,55 @@
+/*
+ * $Id$
+ *
+ * MC68302 Linker command file
+ *
+ */
+
+SECTIONS
+{
+ .text . :
+ {
+ text_start = .;
+ *(.text)
+ etext = .;
+ . = ALIGN(4);
+ __CTOR_LIST__ = .;
+ LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
+ *(.ctors)
+ LONG(0)
+ __CTOR_END__ = .;
+ . = ALIGN(4);
+ __DTOR_LIST__ = .;
+ LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
+ *(.dtors)
+ LONG(0)
+ __DTOR_END__ = .;
+ }
+
+ .vtable 0 :
+ {
+ vtable_start = .;
+ *(.vtable)
+ evtable = .;
+ }
+
+ .data (ADDR(.vtable) + SIZEOF(.vtable)) :
+ AT (ADDR(.text) + SIZEOF(.text))
+ {
+ data_start = .;
+ *(.data)
+ edata = .;
+ }
+ .bss (ADDR(.data) + SIZEOF(.data)) :
+ {
+ bss_start = .;
+ *(.bss)
+ *(COMMON)
+ end = . ;
+ _end = . ;
+ }
+}
+
+m302 = MC68302_BASE;
+_VBR = ADDR(.vtable); /* location of the VBR table (in RAM) */
+