platform-coco3: Forgot to commit/add link script for Applications/utils
authorBrett Gordon <beretta42@gmail.com>
Wed, 17 Jun 2015 13:40:33 +0000 (09:40 -0400)
committerAlan Cox <alan@linux.intel.com>
Wed, 17 Jun 2015 22:14:32 +0000 (23:14 +0100)
platform-coco3:  Forgot to commit/add link script for Applications/utils.

side note:  I'll be more careful about trailing white space /
indentation. Do we prefer tabs or spaces in C code? I'll change my
emacs to give the C code a bit more indentation.

--
Brett M. Gordon,
beretta42@gmail.com

Applications/util/Makefile.6809
Applications/util/coco3.link [new file with mode: 0644]

index dd5c9a1..03d8a95 100644 (file)
@@ -4,7 +4,7 @@ CC = m6809-unknown-gcc
 ASM = m6809-unknown-as
 AR = m6809-unknown-ar
 LINKER = lwlink
-CFLAGS = -Os -I../../Library/include -I../../Library/include/6502
+CFLAGS = -I../../Library/include -I../../Library/include/6502
 LINKER_OPT = --format=raw -L../../Library/libs -lc6809
 LIBGCCDIR = $(dir $(shell $(CC) -print-libgcc-file-name))
 LINKER_OPT += -L$(LIBGCCDIR) -lgcc
diff --git a/Applications/util/coco3.link b/Applications/util/coco3.link
new file mode 100644 (file)
index 0000000..1174016
--- /dev/null
@@ -0,0 +1,9 @@
+define basesympat __sectionbase_%s__
+define lensympat __sectionlen_%s__
+section .header load 0x0100
+section .text
+section .text.startup
+section .text.hot
+section .test.unlikely
+section .data
+section .bss