STM8: Enable linker dead-stripping on Cosmic compiler.

This commit is contained in:
Kelvin Lawson
2010-05-27 23:03:19 +01:00
parent 205c05dc25
commit 973e2fb4aa
2 changed files with 22 additions and 22 deletions

View File

@@ -49,8 +49,8 @@ vpath %.elf .\$(BUILD_DIR)
vpath %.hex .\$(BUILD_DIR)
# Compiler/Assembler flags
CFLAGS=+modsl0 -pp -d$(PART)
DBG_CFLAGS=+modsl0 +debug -pxp -no -pp -l -d$(PART)
CFLAGS=+modsl0 +split -pp -d$(PART)
DBG_CFLAGS=+modsl0 +split +debug -pxp -no -pp -l -d$(PART)
ASMFLAGS=
DBG_ASMFLAGS=-xx -u
@@ -79,7 +79,7 @@ $(TEST_S19S): %.s19: %.stm8
# Test ELF files (one application build for each test)
$(TEST_STM8S): %.stm8: %.o $(KERNEL_OBJECTS) $(PERIPH_OBJECTS) $(APP_OBJECTS) $(APP_ASM_OBJECTS)
$(LINK) -l$(LIBS_DIR) -o $(BUILD_DIR)/$@ atomthreads.lkf $(BUILD_DIR)/$(notdir $<)
$(LINK) -l$(LIBS_DIR) -o $(BUILD_DIR)/$@ -m $(BUILD_DIR)/$(basename $@).map atomthreads.lkf $(BUILD_DIR)/$(notdir $<)
# Kernel objects builder
$(KERNEL_OBJECTS): %.o: $(KERNEL_DIR)/%.c

View File

@@ -83,10 +83,10 @@ String.100.0=STM8S105C6
[Root.Config.0.Settings.3]
String.2.0=Compiling $(InputFile)...
String.3.0=cxstm8 +modsl0 -customDebCompat -customOpt-no -customC-pp -customLst -l -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.3.0=cxstm8 +modsl0 -customDebCompat -customOpt -no +split -customC-pp -customLst -l -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.4.0=$(IntermPath)$(InputName).$(ObjectExt)
String.5.0=$(IntermPath)$(InputName).ls
String.6.0=2010,3,6,17,19,51
String.6.0=2010,5,27,22,48,49
[Root.Config.0.Settings.4]
String.2.0=Assembling $(InputFile)...
@@ -166,10 +166,10 @@ String.100.0=STM8S105C6
[Root.Config.1.Settings.3]
String.2.0=Compiling $(InputFile)...
String.3.0=cxstm8 +modsl0 -customC-pp -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.3.0=cxstm8 +modsl0 -customOpt +split -customC-pp -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.4.0=$(IntermPath)$(InputName).$(ObjectExt)
String.5.0=$(IntermPath)$(InputName).ls
String.6.0=2010,3,6,17,19,51
String.6.0=2010,5,27,22,48,49
[Root.Config.1.Settings.4]
String.2.0=Assembling $(InputFile)...
@@ -189,7 +189,7 @@ String.3.0=clnk $(ToolsetLibOpts) -o $(OutputPath)$(TargetSName).sm8 -fakeIntege
String.3.1=cvdwarf $(OutputPath)$(TargetSName).sm8
String.4.0=$(OutputPath)$(TargetFName)
String.5.0=$(OutputPath)$(ProjectSFile).elf
String.6.0=2010,3,9,0,24,9
String.6.0=2010,5,27,22,49,45
String.100.0=
String.101.0=crtsi.st7
String.102.0=+seg .const -b 0x8080 -m 0x7f80 -n .const -it
@@ -206,7 +206,7 @@ String.103.1=Eeprom[0x4000-0x43ff]=.eeprom
String.103.2=Zero Page[0x2-0xff]=.bsct,.ubsct,.bit,.share
String.103.3=Ram[0x100-0x7bf]=.data,.bss
String.104.0=0x7ff
String.105.0=libis0.sm8;libm0.sm8
String.105.0=libisl0.sm8;libm0.sm8
Int.0=0
Int.1=0
@@ -247,10 +247,10 @@ Int.1=0
[Root.Kernel.Config.0.Settings.1]
String.2.0=Compiling $(InputFile)...
String.3.0=cxstm8 +modsl0 -customDebCompat -customOpt-no -customC-pp -customLst -l -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.3.0=cxstm8 +modsl0 -customDebCompat -customOpt -no +split -customC-pp -customLst -l -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.4.0=$(IntermPath)$(InputName).$(ObjectExt)
String.5.0=$(IntermPath)$(InputName).ls
String.6.0=2010,3,6,17,19,51
String.6.0=2010,5,27,22,48,49
[Root.Kernel.Config.0.Settings.2]
String.2.0=Assembling $(InputFile)...
@@ -271,10 +271,10 @@ Int.1=0
[Root.Kernel.Config.1.Settings.1]
String.2.0=Compiling $(InputFile)...
String.3.0=cxstm8 +modsl0 -customC-pp -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.3.0=cxstm8 +modsl0 -customOpt +split -customC-pp -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.4.0=$(IntermPath)$(InputName).$(ObjectExt)
String.5.0=$(IntermPath)$(InputName).ls
String.6.0=2010,3,6,17,19,51
String.6.0=2010,5,27,22,48,49
[Root.Kernel.Config.1.Settings.2]
String.2.0=Assembling $(InputFile)...
@@ -364,10 +364,10 @@ Int.1=0
[Root.Peripherals.Config.0.Settings.1]
String.2.0=Compiling $(InputFile)...
String.3.0=cxstm8 +modsl0 -customDebCompat -customOpt-no -customC-pp -customLst -l -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.3.0=cxstm8 +modsl0 -customDebCompat -customOpt -no +split -customC-pp -customLst -l -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.4.0=$(IntermPath)$(InputName).$(ObjectExt)
String.5.0=$(IntermPath)$(InputName).ls
String.6.0=2010,3,6,17,19,51
String.6.0=2010,5,27,22,48,49
[Root.Peripherals.Config.0.Settings.2]
String.2.0=Assembling $(InputFile)...
@@ -391,10 +391,10 @@ Int.1=0
[Root.Peripherals.Config.1.Settings.1]
String.2.0=Compiling $(InputFile)...
String.3.0=cxstm8 +modsl0 -customC-pp -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.3.0=cxstm8 +modsl0 -customOpt +split -customC-pp -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.4.0=$(IntermPath)$(InputName).$(ObjectExt)
String.5.0=$(IntermPath)$(InputName).ls
String.6.0=2010,3,6,17,19,51
String.6.0=2010,5,27,22,48,49
[Root.Peripherals.Config.1.Settings.2]
String.2.0=Assembling $(InputFile)...
@@ -491,10 +491,10 @@ Int.1=0
[Root.Port.Config.0.Settings.1]
String.2.0=Compiling $(InputFile)...
String.3.0=cxstm8 +modsl0 -customDebCompat -customOpt-no -customC-pp -customLst -l -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.3.0=cxstm8 +modsl0 -customDebCompat -customOpt -no +split -customC-pp -customLst -l -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.4.0=$(IntermPath)$(InputName).$(ObjectExt)
String.5.0=$(IntermPath)$(InputName).ls
String.6.0=2010,3,6,17,19,51
String.6.0=2010,5,27,22,48,49
[Root.Port.Config.0.Settings.2]
String.2.0=Assembling $(InputFile)...
@@ -518,10 +518,10 @@ Int.1=0
[Root.Port.Config.1.Settings.1]
String.2.0=Compiling $(InputFile)...
String.3.0=cxstm8 +modsl0 -customC-pp -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.3.0=cxstm8 +modsl0 -customOpt +split -customC-pp -dSTM8S105 -dATOM_STACK_CHECKING -istm8s-periphs -i../../kernel -i../../tests $(ToolsetIncOpts) -cl$(IntermPath) -co$(IntermPath) $(InputFile)
String.4.0=$(IntermPath)$(InputName).$(ObjectExt)
String.5.0=$(IntermPath)$(InputName).ls
String.6.0=2010,3,6,17,19,51
String.6.0=2010,5,27,22,48,49
[Root.Port.Config.1.Settings.2]
String.2.0=Assembling $(InputFile)...
@@ -589,4 +589,4 @@ Next=Root.Port.stm8_interrupt_vector.c
[Root.Port.stm8_interrupt_vector.c]
ElemType=File
PathName=stm8_interrupt_vector.c
PathName=stm8_interrupt_vector.c