1#---------------------------------------------------------------------------- 2# Project: TwlSDK - demos - FS - overlay 3# File: ARM9.TWL-TS.lsf 4# 5# Copyright 2007-2008 Nintendo. All rights reserved. 6# 7# These coded instructions, statements, and computer programs contain 8# proprietary information of Nintendo of America Inc. and/or Nintendo 9# Company Ltd., and are protected by Federal copyright law. They may 10# not be disclosed to third parties or copied or duplicated in any form, 11# in whole or in part, without the prior written consent of Nintendo. 12# 13# $Date:: 2009-10-20#$ 14# $Rev: 11101 $ 15# $Author: mizutani_nakaba $ 16#---------------------------------------------------------------------------- 17# 18# TWL LCF SPEC FILE 19# 20 21Static $(TARGET_NAME) 22{ 23 Address $(ADDRESS_STATIC) 24 Object $(OBJS_STATIC) 25 Library $(LLIBS) $(GLIBS) $(CW_LIBS) 26} 27 28Autoload ITCM 29{ 30 Address $(ADDRESS_ITCM) 31 Object * (.itcm) 32 Object $(OBJS_AUTOLOAD) (.text) 33 Object $(OBJS_AUTOLOAD) (.rodata) 34} 35 36Autoload DTCM 37{ 38 Address $(ADDRESS_DTCM) 39 Object * (.dtcm) 40 Object $(OBJS_AUTOLOAD) (.data) 41 Object $(OBJS_AUTOLOAD) (.sdata) 42 Object $(OBJS_AUTOLOAD) (.bss) 43 Object $(OBJS_AUTOLOAD) (.sbss) 44} 45 46# main_overlay_1 and main_overlay_2 are same area (after main). 47# main_overlay_3 is in ITCM (from 0x01FF8000, after ITCM). 48 49Overlay main_overlay_1 50{ 51 After $(TARGET_NAME) 52 Object $(OBJDIR)/func_1.o 53} 54 55Overlay main_overlay_2 56{ 57 After $(TARGET_NAME) 58 Object $(OBJDIR)/func_2.o 59 Compress SMART 60} 61 62Overlay main_overlay_3 63{ 64 After ITCM 65 Object $(OBJDIR)/func_3.o 66 Compress EXCLUSION 67} 68 69Ltdautoload LTDMAIN 70{ 71 # If there is a shared overlay for NITRO/TWL, must put it after that 72 After $(TARGET_NAME) 73 After main_overlay_1 74 After main_overlay_2 75 After main_overlay_3 76 Object * (.ltdmain) 77 Object $(OBJS_LTDAUTOLOAD) 78 Library $(LLIBS_EX) $(GLIBS_EX) 79} 80