tom minnich

ROM_LIB  rom library option seems to turn off deadstripping of code

Discussion created by tom minnich on Apr 11, 2008
Latest reply on Apr 12, 2008 by tom minnich
I am writing a boostrap/flash programming code module and would like to include it in the main application code as a rom library. When I turn on the Link as ROM library option in Code Warrior deadstripping of the code stops working. I have two source files RTSHC08.c and checksum.c that have their origins in Code Warrior and while I could manually deadstrip the code I would prefer not to do the deadstripping manually. The situation was much worse when the project included ansiis.lib.:smileysurprised: I am hoping I am one link option away from streamlined code, but I can't seem to find a linker option that solves this problem.
 
The beginnings of the map file:
 
PROGRAM "C:\Documents and Settings\Tom\My Documents\boot7o\bin\Project.abs"
*********************************************************************************************
TARGET SECTION
---------------------------------------------------------------------------------------------
Processor   : Freescale HC08
Memory Model: SMALL
File Format : ELF\DWARF 2.0
Linker      : SmartLinker V-5.0.30 Build 7285, Oct 13 2007
*********************************************************************************************
FILE SECTION
---------------------------------------------------------------------------------------------
MC9S08QE128.C.o                         Model: SMALL,         Lang: ANSI-C
flashboot.c.o                           Model: SMALL,         Lang: ANSI-C
checksum.c.o                            Model: SMALL,         Lang: ANSI-C
rtshc08.c.o                             Model: SMALL,         Lang: ANSI-C
*********************************************************************************************
 
regards Tom M.

Outcomes