From 2400e94d8a9eb281d6442933c64b7de8a56eeac8 Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Wed, 17 Jun 2015 09:40:33 -0400 Subject: [PATCH] platform-coco3: Forgot to commit/add link script for Applications/utils 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 | 2 +- Applications/util/coco3.link | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Applications/util/coco3.link diff --git a/Applications/util/Makefile.6809 b/Applications/util/Makefile.6809 index dd5c9a18..03d8a950 100644 --- a/Applications/util/Makefile.6809 +++ b/Applications/util/Makefile.6809 @@ -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 index 00000000..11740160 --- /dev/null +++ b/Applications/util/coco3.link @@ -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 -- 2.34.1