1#----------------------------------------------------------------------------
2# Project:  Project:  NitroSDK - MB - demos - multiboot-wfs
3# File:     main.lsf
4#
5# Copyright 2005-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# $Log: main.lsf,v $
14# Revision 1.1  2005/06/23 09:05:39  yosizaki
15# Initial upload.
16#
17# $NoKeywords: $
18#----------------------------------------------------------------------------
19#
20#  Twl LCF SPEC FILE
21#
22
23Static main
24{
25	Address		$(ADDRESS_STATIC)
26	Object		$(OBJS_STATIC)
27	Library		$(LLIBS) $(GLIBS) $(CW_LIBS)
28
29#	Increase capacity of IRQ stack
30	StackSize	0 0x800
31}
32
33Autoload ITCM
34{
35	Address		$(ADDRESS_ITCM)
36	Object		*     		 (.itcm)
37	Object		$(OBJS_AUTOLOAD) (.text)
38	Object		$(OBJS_AUTOLOAD) (.rodata)
39}
40
41Autoload DTCM
42{
43	Address		$(ADDRESS_DTCM)
44	Object		*     		 (.dtcm)
45	Object		$(OBJS_AUTOLOAD) (.data)
46	Object		$(OBJS_AUTOLOAD) (.sdata)
47	Object		$(OBJS_AUTOLOAD) (.bss)
48	Object		$(OBJS_AUTOLOAD) (.sbss)
49}
50
51Overlay main_overlay_1
52{
53	After		main
54	Object		$(OBJDIR)/func_1.o
55}
56
57Overlay main_overlay_2
58{
59	After		main
60	Object		$(OBJDIR)/func_2.o
61}
62
63Overlay main_overlay_3
64{
65	After		ITCM
66	Object		$(OBJDIR)/func_3.o
67}
68
69Ltdautoload LTDMAIN
70{
71	# If there is a shared overlay for NITRO/TWL, must put it after that
72	After		main_overlay_3
73	Object		* (.ltdmain)
74	Object		$(OBJS_LTDAUTOLOAD)
75	Library		$(LLIBS_EX) $(GLIBS_EX)
76}
77